[LeetCode] 2483. Minimum Penalty for a Shop - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/minimum-penalty-for-a-shop/description/ Minimum Penalty for a Shop - LeetCode Can you solve this real interview question? Minimum Penalty for a Shop - You are given the customer visit log of a shop represented by a 0-indexed string customers consisting only of characters 'N' and 'Y': * if the ith character is 'Y', it means that cust leetcode.com 문제 You are given the..
[LeetCode] 215. Kth Largest Element in an Array - Java
·
알고리즘/LeetCode
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 문제 Given a..
[LeetCode] 518. Coin Change II - Java, JavaScript
·
알고리즘/LeetCode
https://leetcode.com/problems/coin-change-ii/description/ Coin Change II - LeetCode Can you solve this real interview question? Coin Change II - You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return the number of combinations that make up that leetcode.com 문제 You are given an integer array coins repre..
[LeetCode] 74. Search a 2D Matrix - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/search-a-2d-matrix/description/ Search a 2D Matrix - LeetCode Can you solve this real interview question? Search a 2D Matrix - You are given an m x n integer matrix matrix with the following two properties: * Each row is sorted in non-decreasing order. * The first integer of each row is greater than the last integer leetcode.com 문제 You are given an m x n integer mat..
[LeetCode] 735. Asteroid Collision - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/asteroid-collision/ Asteroid Collision - LeetCode Can you solve this real interview question? Asteroid Collision - We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning leetcode.com 문제 We are given an array asteroids of integers r..
HYOJUN
'알고리즘풀이' 태그의 글 목록