분류 전체보기 68

[Leetcode 아주 상세한 문제풀이] 153. Find Minimum in Rotated Sorted Array - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 153번 문제 Find minimum in rotated sorted array 다. 우선 문제를 살펴보자. 리트코드 153번 문제 Find minimum in rotated sorted array (링크) Find Minimum in Rotated Sorted Array - LeetCode Find Minimum in Rotated Sorted Array - LeetCode Can you solve this real interview question? Find Minimum in Rotated Sorted Array - Suppose an array of length n sorted in ascending order is rotated between ..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 152. Maximum Product Subarray - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 152번 문제 Maximum Product Subarray 다. 우선 문제를 살펴보자. 리트코드 152번 문제 Maximum Product Subarray (링크) Maximum Product Subarray - LeetCode Maximum Product Subarray - LeetCode Can you solve this real interview question? Maximum Product Subarray - Given an integer array nums, find a subarray that has the largest product, and return the product. The test cases are generated so tha..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 121. Best Time to Buy and Sell Stock - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 121번 문제 Best time to buy and sell stock 다. 우선 문제를 살펴보자. 리트코드 121번 문제 Best time to buy and sell stock (링크) Best Time to Buy and Sell Stock - LeetCode Best Time to Buy and Sell Stock - LeetCode Can you solve this real interview question? Best Time to Buy and Sell Stock - You are given an array prices where prices[i] is the price of a given stock on the ith day. You wan..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 53. Maximum Subarray - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 53번 문제 Maximum Subarray 다. 우선 문제를 살펴보자. 리트코드 53번 문제 Maximum Subarray (링크) Maximum Subarray - LeetCode Maximum Subarray - LeetCode Can you solve this real interview question? Maximum Subarray - Given an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: The subarray [4..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 33. Search in Rotated Sorted Array - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 33번 문제 Search in rotated sorted array 다. 우선 문제를 살펴보자. 리트코드 33번 문제 Search in rotated sorted array (링크) Search in Rotated Sorted Array - LeetCode Search in Rotated Sorted Array - LeetCode Can you solve this real interview question? Search in Rotated Sorted Array - There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to ..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 15. 3 Sum - 코드 line 별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 15번 문제 3 Sum 이다. 우선 문제를 살펴보자. 리트코드 15번 문제 3 Sum (링크) 3Sum - LeetCode 3Sum - LeetCode Can you solve this real interview question? 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. Notice that the solution set must not contain du leetcode.com Given an integ..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 11. Container with most water - 코드 line별 설명

Leetcode 문제 이번에 풀어볼 문제는 리트코드 11번 문제 Container with most water 다. 우선 문제를 살펴보자. 리트코드 11번 문제 Container with most water (링크) Container With Most Water - LeetCode Container With Most Water - LeetCode Can you solve this real interview question? Container With Most Water - You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are..

Leetcode/Array 2023.12.24

[Leetcode 아주 상세한 문제풀이] 1. Two Sum – 코드 line 별 설명

Leetcode 문제 리트코드의 대표 문제 중 하나인 Two sum 은 쉽지만 다양한 접근 방식이 있는 문제다. 우선 문제를 살펴보자. 리트코드 1번 문제 Two Sum (링크) Two Sum - LeetCode Two Sum - LeetCode Can you solve this real interview question? Two Sum - Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not leet..

Leetcode/Array 2023.12.24