목록LeetCode (567)
넘치게 채우기
https://leetcode.com/problems/sum-of-absolute-differences-in-a-sorted-array/description/ Sum of Absolute Differences in a Sorted Array - LeetCode Can you solve this real interview question? Sum of Absolute Differences in a Sorted Array - You are given an integer array nums sorted in non-decreasing order. Build and return an integer array result with the same length as nums such that result[i] is..
https://leetcode.com/problems/arithmetic-subarrays/description/ Arithmetic Subarrays - LeetCode Can you solve this real interview question? Arithmetic Subarrays - A sequence of numbers is called arithmetic if it consists of at least two elements, and the difference between every two consecutive elements is the same. More formally, a sequence s is ari leetcode.com leetcode - Arithmetic Subarrays ..
https://leetcode.com/problems/diagonal-traverse-ii/description/ Diagonal Traverse II - LeetCode Can you solve this real interview question? Diagonal Traverse II - Given a 2D integer array nums, return all elements of nums in diagonal order as shown in the below images. Example 1: [https://assets.leetcode.com/uploads/2020/04/08/sample_1_1784.png] I leetcode.com leetcode - Diagonal Traverse II 문제 ..
https://leetcode.com/problems/count-nice-pairs-in-an-array/description/ Count Nice Pairs in an Array - LeetCode Can you solve this real interview question? Count Nice Pairs in an Array - You are given an array nums that consists of non-negative integers. Let us define rev(x) as the reverse of the non-negative integer x. For example, rev(123) = 321, and rev(120) = 21 leetcode.com leetcode - Count..
https://leetcode.com/problems/minimum-amount-of-time-to-collect-garbage/description/ Minimum Amount of Time to Collect Garbage - LeetCode Can you solve this real interview question? Minimum Amount of Time to Collect Garbage - You are given a 0-indexed array of strings garbage where garbage[i] represents the assortment of garbage at the ith house. garbage[i] consists only of the characters 'M lee..
https://leetcode.com/problems/reduction-operations-to-make-the-array-elements-equal/description/ Reduction Operations to Make the Array Elements Equal - LeetCode Can you solve this real interview question? Reduction Operations to Make the Array Elements Equal - Given an integer array nums, your goal is to make all elements in nums equal. To complete one operation, follow these steps: 1. Find the..
https://leetcode.com/problems/frequency-of-the-most-frequent-element/description/ Frequency of the Most Frequent Element - LeetCode Can you solve this real interview question? Frequency of the Most Frequent Element - The frequency of an element is the number of times it occurs in an array. You are given an integer array nums and an integer k. In one operation, you can choose an index o leetcode...
https://leetcode.com/problems/minimize-maximum-pair-sum-in-array/description/ Minimize Maximum Pair Sum in Array - LeetCode Can you solve this real interview question? Minimize Maximum Pair Sum in Array - The pair sum of a pair (a,b) is equal to a + b. The maximum pair sum is the largest pair sum in a list of pairs. * For example, if we have pairs (1,5), (2,3), and (4,4), the m leetcode.com leet..
https://leetcode.com/problems/find-unique-binary-string/description/ Find Unique Binary String - LeetCode Can you solve this real interview question? Find Unique Binary String - Given an array of strings nums containing n unique binary strings each of length n, return a binary string of length n that does not appear in nums. If there are multiple answers, you leetcode.com leetcode - Find Unique ..
https://leetcode.com/problems/maximum-element-after-decreasing-and-rearranging/description/ Maximum Element After Decreasing and Rearranging - LeetCode Can you solve this real interview question? Maximum Element After Decreasing and Rearranging - You are given an array of positive integers arr. Perform some operations (possibly none) on arr so that it satisfies these conditions: * The value of t..