목록PS/LeetCode (581)
넘치게 채우기
https://leetcode.com/problems/check-if-two-string-arrays-are-equivalent/description/ Check If Two String Arrays are Equivalent - LeetCode Can you solve this real interview question? Check If Two String Arrays are Equivalent - Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise. A string is represented by an array if the array leet..
https://leetcode.com/problems/number-of-1-bits/description/?envType=daily-question&envId=2023-11-29 Number of 1 Bits - LeetCode Can you solve this real interview question? Number of 1 Bits - Write a function that takes the binary representation of an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight [http://en.wikipedia.org/wiki/Hamming_w leetcode.com l..
https://leetcode.com/problems/number-of-ways-to-divide-a-long-corridor/description/ Number of Ways to Divide a Long Corridor - LeetCode Can you solve this real interview question? Number of Ways to Divide a Long Corridor - Along a long library corridor, there is a line of seats and decorative plants. You are given a 0-indexed string corridor of length n consisting of letters 'S' and 'P' wh leetc..
https://leetcode.com/problems/knight-dialer/description/ Knight Dialer - LeetCode Can you solve this real interview question? Knight Dialer - The chess knight has a unique movement, it may move two squares vertically and one square horizontally, or two squares horizontally and one square vertically (with both forming the shape of an L) leetcode.com leetcode - Knight Dialer 문제 유형 : 다이나믹 프로그래밍 / 부..
https://leetcode.com/problems/largest-submatrix-with-rearrangements/description/ Largest Submatrix With Rearrangements - LeetCode Can you solve this real interview question? Largest Submatrix With Rearrangements - You are given a binary matrix matrix of size m x n, and you are allowed to rearrange the columns of the matrix in any order. Return the area of the largest submatrix within leetcode.co..
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/maximum-number-of-coins-you-can-get/description/ Maximum Number of Coins You Can Get - LeetCode Can you solve this real interview question? Maximum Number of Coins You Can Get - There are 3n piles of coins of varying size, you and your friends will take piles of coins as follows: * In each step, you will choose any 3 piles of coins (not necessarily c leetcode.com le..
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..