알고리즘3 [Algorithm & English Study] LeetCode.26 Remove Duplicates from Sorted Array English ContentGiven an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that unique element appears only once.The relative order of the elements should be kept the same.Then return the number of unique elements in nums.Consider the number of unique elements of nums to k, to get accepted, you need to do the following things:Change the array nums such that th.. 2024. 11. 24. [Algorithm & English Study] LeetCode 27. Remove Element English ContentGiven an integer array nums and an integer val, remove all occurrences of val in nums in-place.The order of the elements may be changed. Then return the number of elements in nums which are not equal to val.Consider the number of elements in nums which are not equal to val be k, to get accepted,you need to do the following things:Change the array nums such that the first k element.. 2024. 11. 23. [알고리즘 & 영어공부]LeetCode 88. Merge Sorted Array English contentYou are given two integer arrays num1 and num2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in num1 and num2 respectively.Merge num1 and num2 into a single array sorted in non-decreasing order.The final sorted array should not be returned by the function, but instead be stored inside the array num1. To accommodate this, num1 has a .. 2024. 11. 21. 이전 1 다음