https://leetcode.com/studyplan/top-interview-150/ 리트코드에서 추천하는 탑 인터뷰 150제 풀어본다.
https://leetcode.com/problems/merge-sorted-array/description/?envType=study-plan-v2&envId=top-interview-150원래 문제 의도가 아닌듯?정확하게는 O(m+n)둘다 소팅되어있다고 가
https://leetcode.com/problems/remove-element/description/?envType=study-plan-v2&envId=top-interview-150in-place라고 해서 처음에 아래와 같이 풀었다.val과 같으면 스왑 -
https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/?envType=study-plan-v2&envId=top-interview-150이 시리즈의 이전 문제들과 비슷한 유형
https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/?envType=study-plan-v2&envId=top-interview-150 자바는 원본 배열도 같이 정렬해서 줘야하나보다. 일단 위 내용 생각해서 푼건 아래와 같음 어거지로 푼 느낌이라서 솔루션 참고했...