목록LeetCode (566)
넘치게 채우기
https://leetcode.com/problems/count-partitions-with-max-min-difference-at-most-k/description/?envType=daily-question&envId=2025-12-06LeetCode - Count Partitions With Max-Min Difference at Most K문제 유형: 모노토닉 큐, 다이나믹 프로그래밍, 슬라이딩 윈도우문제 난이도: Medium 문제You are given an integer array nums and an integer k. Your task is to partition nums into one or more non-empty contiguous segments such that in each se..
https://leetcode.com/problems/count-number-of-trapezoids-ii/editorial/?envType=daily-question&envId=2025-12-03LeetCode - Count Number of Trapezoids II문제 유형: 기하학, 해시문제 난이도: Hard 문제You are given a 2D integer array points where points[i] = [xi, yi] represents the coordinates of the ith point on the Cartesian plane.Return the number of unique trapezoids that can be formed by choosing any four distin..
https://leetcode.com/problems/count-number-of-trapezoids-i/description/?envType=daily-question&envId=2025-12-02LeetCode - Count Number of Trapezoids I문제 유형: 기하학문제 난이도: Medium 문제You are given a 2D integer array points, where points[i] = [xi, yi] represents the coordinates of the ith point on the Cartesian plane.A horizontal trapezoid is a convex quadrilateral with at least one pair of horizontal ..
https://leetcode.com/problems/maximum-running-time-of-n-computers/description/?envType=daily-question&envId=2025-12-01Leetcode - Maximum Runnging Time of N Computers문제 유형: 이진탐색, 매개 변수 탐색, 그리디문제 난이도: Hard 문제You have n computers. You are given the integer n and a 0-indexed integer array batteries where the ith battery can run a computer for batteries[i] minutes. You are interested in running all n..
https://leetcode.com/problems/set-intersection-size-at-least-two/description/?envType=daily-question&envId=2025-11-20LeetCode - Set Intersection Size At Least Two문제 유형: 그리디, 투 포인터문제 난이도: Hard 문제You are given a 2D integer array intervals where intervals[i] = [starti, endi] represents all the integers from starti to endi inclusively.A containing set is an array nums where each interval from interv..
https://leetcode.com/problems/minimum-operations-to-convert-all-elements-to-zero/description/?envType=daily-question&envId=2025-11-10LeetCode - Minimum Operations to Convert All Elements to Zero문제 유형: 모노토닉 스택(단조 증가 스택)문제 난이도: Medium 문제You are given an array nums of size n, consisting of non-negative integers. Your task is to apply some (possibly zero) operations on the array so that all elements..
https://leetcode.com/problems/minimum-one-bit-operations-to-make-integers-zero/description/?envType=daily-question&envId=2025-11-08LeetCode - Minimum One Bit Operations to Make Integers Zero문제 유형: 그레이 코드, 비트 조작문제 난이도: Hard 문제Given an integer n, you must transform it into 0 using the following operations any number of times:Change the rightmost (0th) bit in the binary representation of n.Change t..
https://leetcode.com/problems/maximize-the-minimum-powered-city/description/?envType=daily-question&envId=2025-11-07Leetcode - Maximize the Minimum Powered City문제 유형: 슬라이딩 윈도우, 누적 합, 이진 탐색문제 난이도: Hard 문제You are given a 0-indexed integer array stations of length n, where stations[i] represents the number of power stations in the ith city.Each power station can provide power to every city in a fix..
https://leetcode.com/problems/find-x-sum-of-all-k-long-subarrays-ii/description/?envType=daily-question&envId=2025-11-05Leetcode - Find X-Sum of All K-Long Subarrays II문제 유형: 슬라이딩 윈도우, 집합, 해시맵문제 난이도: Hard 문제You are given an array nums of n integers and two integers k and x.The x-sum of an array is calculated by the following procedure:Count the occurrences of all elements in the array.Keep only ..
https://leetcode.com/problems/maximum-frequency-of-an-element-after-performing-operations-ii/description/?envType=daily-question&envId=2025-10-22leetcode - Maximum Freqency of an Element After Performing Operations II문제 유형: 정렬, 이진 탐색, 슬라이딩 윈도우문제 난이도: Hard 문제You are given an integer array nums and two integers k and numOperations.You must perform an operation numOperations times on nums, where in..