본문 바로가기
반응형

PROGRAMMING/LeetCode38

[Leetcode] 19. Remove Nth Node From End of List_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '19. Remove Nth Node From End of List'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. 'Remove Nth Node From End of List' 알고리즘 문제 STEP 2. 'Remove Nth Node From End of List' 코드(code) STEP 3. 'Remove Nth Node From End of List' solution STEP 1. 'Remove Nth Node From End of List' 알고리즘 문제 Given the head of a linked list, remove the .. 2022. 5. 17.
[Leetcode] 18. 4Sum_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '18. 4Sum'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. '4Sum' 알고리즘 문제 STEP 2. '4Sum' 코드(code) STEP 3. '4Sum' 해설 STEP 4. '4Sum' solution STEP 1. '4Sum' 알고리즘 문제 Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that, and you may return the answer in any .. 2022. 5. 17.
[Leetcode] 17. Letter Combinations of a Phone Number_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '17. Letter Combinations of a Phone Number'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. 'Letter Combinations of a Phone Number' 알고리즘 문제 STEP 2. 'Letter Combinations of a Phone Number' 코드(code) STEP 3. 'Letter Combinations of a Phone Number' 해설 STEP 4. 'Letter Combinations of a Phone Number' solution STEP 1. 'Letter Combinat.. 2022. 5. 1.
[Leetcode] 16. 3Sum Closest_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '16. 3Sum Closest'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. '3Sum Closest' 알고리즘 문제 STEP 2. '3Sum Closest' 코드(code) STEP 3. '3Sum Closest' 해설 STEP 1. '3Sum Closest' 알고리즘 문제 16번 문제는 15번 문제 3SUM과 유사한 문제입니다. Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closes.. 2022. 5. 1.
[Leetcode] 15. 3Sum_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '15. 3Sum'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. '3Sum' 알고리즘 문제 STEP 2. '3Sum' 코드(code) STEP 3. '3Sum' 해설 STEP 4. '3Sum' solution STEP 1. '3Sum' 알고리즘 문제 Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. 정수 배열 번호가.. 2022. 5. 1.
[Leetcode] 14. Longest Common Prefix_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '14. Longest Common Prefix'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. 'Longest Common Prefix' 알고리즘 문제 STEP 2. 'Longest Common Prefix' 코드(code) STEP 3. 'Longest Common Prefix' 해설 STEP 4. 'Longest Common Prefix' solution STEP 1. 'Longest Common Prefix' 알고리즘 문제 Write a function to find the longest common prefix string amongs.. 2022. 5. 1.
[Leetcode] 13. Roman to Integer_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '13. Roman to Integer'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. 'Roman to Integer' 알고리즘 문제 STEP 2. 'Roman to Integer' 코드(code) STEP 3. 'Roman to Integer' 해설 STEP 4. 'Roman to Integer' solution STEP 1. 'Roman to Integer' 알고리즘 문제 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example.. 2022. 5. 1.
[Leetcode] 12. Integer to Roman_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '12. Integer to Roman'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. 'Integer to Roman' 알고리즘 문제 STEP 2. 'Integer to Roman' 코드(code) STEP 3. 'Integer to Roman' 해설 STEP 4. 'Integer to Roman' solution STEP 1. 'Integer to Roman' 알고리즘 문제 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example.. 2022. 4. 30.
[Leetcode] 11. Container With Most Water_해설, 풀이, 설명 안녕하세요, HELLO 오늘은 Leetcode 알고리즘 문제 '11. Container With Most Water'에 대해서 살펴보고자 합니다. 알고리즘 문제, 코드, 해설 그리고 Leetcode에서 제공해준 solution 순서대로 정리하였습니다. STEP 1. 'Container With Most Water' 알고리즘 문제 STEP 2. 'Container With Most Water' 코드(code) STEP 3. 'Container With Most Water' 해설 STEP 4. 'Container With Most Water' solution STEP 1. 'Container With Most Water' 알고리즘 문제 You are given an integer array height of.. 2022. 4. 27.
반응형