전체 글

성장일기
알고리즘/자료구조

[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
J N Y 0