Leetcode/LeetCode75 67

[DP-1D][Easy] 1137.N-th Tribonacci Number

https://leetcode.com/problems/n-th-tribonacci-number/description N-th Tribonacci Number - LeetCode Can you solve this real interview question? N-th Tribonacci Number - The Tribonacci sequence Tn is defined as follows: T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0. Given n, return the value of Tn. Example 1: Input: n = 4 Output: 4 E leetcode.com Q. Tribonacci를 주어진 n에 대해 다음과 같이 정의..

Leetcode/LeetCode75 2024.01.15

[Backtracking][Medium] 216. Combination Sum III

https://leetcode.com/problems/combination-sum-iii/description Combination Sum III - LeetCode Can you solve this real interview question? Combination Sum III - Find all valid combinations of k numbers that sum up to n such that the following conditions are true: * Only numbers 1 through 9 are used. * Each number is used at most once. Return a list leetcode.com Q. 1 ~ 9개의 숫자를 k 번 사용하여 그 합을 n 을 만든다..

Leetcode/LeetCode75 2024.01.13

[Binary Search][Medium] 875. Koko Eating Bananas

https://leetcode.com/problems/koko-eating-bananas/description Koko Eating Bananas - LeetCode Can you solve this real interview question? Koko Eating Bananas - Koko loves to eat bananas. There are n piles of bananas, the ith pile has piles[i] bananas. The guards have gone and will come back in h hours. Koko can decide her bananas-per-hour eating sp leetcode.com Q. 주어진 vector piles는 각 바나나 개수를 의미한다..

Leetcode/LeetCode75 2024.01.12

[Binary Search][Medium] 162. Find Peak Element

https://leetcode.com/problems/find-peak-element/description Find Peak Element - LeetCode Can you solve this real interview question? Find Peak Element - A peak element is an element that is strictly greater than its neighbors. Given a 0-indexed integer array nums, find a peak element, and return its index. If the array contains multiple peaks, leetcode.com Q. nums 배열이 주어질 때, 특정 원소가 인접한 두개의 원소보다 ..

Leetcode/LeetCode75 2024.01.11

[Binary Search][Medium] 2300. Successful Pairs of Spells and Potions

https://leetcode.com/problems/successful-pairs-of-spells-and-potions/description Successful Pairs of Spells and Potions - LeetCode Can you solve this real interview question? Successful Pairs of Spells and Potions - You are given two positive integer arrays spells and potions, of length n and m respectively, where spells[i] represents the strength of the ith spell and potions[j] repre leetcode.c..

Leetcode/LeetCode75 2024.01.10

[Binary Search][Easy] 374. Guess Number Higher or Lower

https://leetcode.com/problems/guess-number-higher-or-lower/description Guess Number Higher or Lower - LeetCode Can you solve this real interview question? Guess Number Higher or Lower - We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wrong, I will tell you whether the leetcode.com Q. 1-n까지의 수 중 하나를 ..

Leetcode/LeetCode75 2024.01.09

[Heap/Priority Queue][Medium] 2542. Maximum Subsequence Score

https://leetcode.com/problems/maximum-subsequence-score Maximum Subsequence Score - LeetCode Can you solve this real interview question? Maximum Subsequence Score - You are given two 0-indexed integer arrays nums1 and nums2 of equal length n and a positive integer k. You must choose a subsequence of indices from nums1 of length k. For chosen indic leetcode.com Q. 길이가 같은 두개의 배열과 양수 k 가 주어질 때, 두 배..

Leetcode/LeetCode75 2024.01.06

[Heap/Priority Queue][Medium] 2336. Smallest Number in Infinite Set

https://leetcode.com/problems/smallest-number-in-infinite-set/description Smallest Number in Infinite Set - LeetCode Can you solve this real interview question? Smallest Number in Infinite Set - You have a set which contains all positive integers [1, 2, 3, 4, 5, ...]. Implement the SmallestInfiniteSet class: * SmallestInfiniteSet() Initializes the SmallestInfiniteSet obj leetcode.com Q. 모든 양의 정수..

Leetcode/LeetCode75 2024.01.03

[Heap/Priority Queue][Medium] 215. Kth Largest Element in an Array

https://leetcode.com/problems/kth-largest-element-in-an-array/description Kth Largest Element in an Array - LeetCode Can you solve this real interview question? Kth Largest Element in an Array - Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted order, not the kth distinct eleme leetcode.com Q. 해당 주어진 배..

Leetcode/LeetCode75 2024.01.02