분류 전체보기

알고리즘/자료구조

[LeetCode] 209. Minimum Size Subarray Sum - Java

Minimum Size Subarray Sum - LeetCode Can you solve this real interview question? Minimum Size Subarray Sum - Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target. If there is no such subarr leetcode.com 문제 더보기 Given an array of positive integers nums and a positive integer target, return the m..

카테고리 없음

[LeetCode] 167. Two Sum II - Input Array Is Sorted - Java

Two Sum II - Input Array Is Sorted - LeetCode Can you solve this real interview question? Two Sum II - Input Array Is Sorted - Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number. Let these two n leetcode.com 문제 더보기 Given a 1-indexed array of integers numbers that is already sorted in non-d..

알고리즘/자료구조

[LeetCode] 125. Valid Palindrome - Java

Valid Palindrome - LeetCode Can you solve this real interview question? Valid Palindrome - A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric cha leetcode.com 문제 더보기 A phrase is a palindrome if, after converting all uppercase letters into lowercase letters an..

알고리즘/자료구조

[LeetCode] 189. Rotate Array - Java

Rotate Array - LeetCode Can you solve this real interview question? Rotate Array - Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4] Explanation: rotate 1 step leetcode.com 문제 더보기 Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. Exam..

알고리즘/자료구조

[LeetCode] 55. Jump Game - Java

Jump Game - LeetCode Can you solve this real interview question? Jump Game - You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length at that position. Return true if you can leetcode.com 문제 더보기 You are given an integer array nums. You are initially positioned at the array's first index, and ea..

알고리즘/자료구조

[LeetCode] 122. Best Time to Buy and Sell Stock II - Java

Best Time to Buy and Sell Stock II - LeetCode Can you solve this real interview question? Best Time to Buy and Sell Stock II - You are given an integer array prices where prices[i] is the price of a given stock on the ith day. On each day, you may decide to buy and/or sell the stock. You can only hold leetcode.com 문제 더보기 You are given an integer array prices where prices[i] is the price of a giv..

알고리즘/자료구조

[LeetCode] 121. Best Time to Buy and Sell Stock - Java

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 want to maximize your profit by choosing a single day to buy one stock and choosin leetcode.com 문제 더보기 You are given an array prices where prices[i] is the price of a given stock on..

알고리즘/자료구조

[LeetCode] 169. Majority Element - Java

Majority Element - LeetCode Can you solve this real interview question? Majority Element - Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that the majority element always exists leetcode.com 문제 더보기 Given an array nums of size n, return the majority element. The majority element is the element th..

알고리즘/자료구조

[LeetCode] 80. Remove Duplicates from Sorted Array II - Java

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 문제 더보기 Given an integer array nums sorted in non-decreasing order, remove some..

알고리즘/자료구조

[LeetCode] 26. Remove Duplicates from Sorted Array - Java

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 문제 더보기 Given an integer array nums sorted in non-decreasing order, remove the dup..

jny0
'분류 전체보기' 카테고리의 글 목록 (4 Page)