728x90
반응형

LeetCode 문제 풀이 3

[LeetCode] 26. Remove Duplicates from Sorted Array 파이썬(Python) 풀이

문제 링크 https://leetcode.com/problems/remove-duplicates-from-sorted-array Remove Duplicates from Sorted Array - LeetCode Can you solve this real interview question? Remove Duplicates from Sorted Array - Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place [https://en.wikipedia.org/wiki/In-place_algorithm] such that each unique element ap leetcode.com 투 포인터 문제라..

[LeetCode] 27. Remove Element 파이썬(Python) 풀이

문제 링크 https://leetcode.com/problems/remove-element Remove Element - LeetCode Can you solve this real interview question? Remove Element - Given an integer array nums and an integer val, remove all occurrences of val in nums in-place [https://en.wikipedia.org/wiki/In-place_algorithm]. The order of the elements may be changed. Then r leetcode.com element 간의 순서가 변경되어도 상관 없으니, 순차적으로 방문하면서 지워야 하는 ele..

[LeetCode] 88. Merge Sorted Array 파이썬(Python) 풀이

문제 링크 https://leetcode.com/problems/merge-sorted-array Merge Sorted Array - LeetCode Can you solve this real interview question? Merge Sorted Array - You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. Merge nums1 an leetcode.com merge sort 에서 가장 핵심이 되는 merge 함수의 in-place ..

728x90
반응형