Leetcode (106) 썸네일형 리스트형 [Leetcode]_274. H-Index 문제 https://leetcode.com/problems/h-index/description/?envType=study-plan-v2&envId=top-interview-150 LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 위 문제에서 정수형 배열이 주어지고, 배열의 요소는 논문이 인용된 횟수를 나타내며 배열의 총 길이는 논문의 갯수를 의미한다. H-.. [Leetcode]_45. Jump Game 2 문제 길이가 n이고 인덱스가 0인 정수형 배열이 주어진다. 인덱스가 0이므로 초기 위치가 nums[0]이다. 각 요쇼 nums[i]가 의미하는 것은 인덱스 i에서 앞으로 점프할 수 있는 최대 길이를 의미한다. 다시말해서, 너가 nums[i]에 있다면, 너는 nums[i+j]인 어느곳이든 점프할 수 있다. 0 [Leetcode]_55. Jump Game 문제 https://leetcode.com/problems/jump-game/description/?envType=study-plan-v2&envId=top-interview-150 LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 처음에 접근을 투포인터로 접근해보았다. 현재의 위치 = i 다음의 위치 = 현재 위치 + 현재 위치의 값 = j 위와 같이 설.. [Leetcode]_122. Best Time to Buy and Sell Stock II 문제 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/description/?envType=study-plan-v2&envId=top-interview-150 LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 어제 비슷한 문제라고 생각해서 투 포인터로 풀려고 시도했다. 하지만 투 포인터로 .. [Leetcode]_121. Best Time to Buy and Sell Stock 문제 https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/?envType=study-plan-v2&envId=top-interview-150 LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 처음에는 이중반복문으로 풀었는데, 시간 초과가 발생하여 다른 방법을 생각해보았다. 투 .. [Leetcode]_169. Majority Element 문제 https://leetcode.com/problems/majority-element/description/?envType=study-plan-v2&envId=top-interview-150 LeetCode - The World's Leading Online Programming Learning Platform Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 다수의 요소의 갯수를 반환하는 문제이니 요소의 갯수가 가장 많은 것을 반환하면 된다고 생각했다. hash를 이용하.. [Leetcode]_80. Remove Duplicates from Sorted Array 2 문제 Remove Duplicates from Sorted Array 2 Remove Duplicates from Sorted Array II - LeetCode Can you solve this real interview question? Remove Duplicates from Sorted Array II - Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place [https://en.wikipedia.org/wiki/In-place_algorithm] such that each unique elemen leetcode.com 풀이 26. Remove Duplicates from Sorted .. [Leetcode]_26. Remove Duplicates from Sorted Array 문제 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 풀이 오름차순으로 정렬된 배열이 주어지고 해당 배열을 앞에서부터 유니크한 요.. 이전 1 ··· 10 11 12 13 14 다음