摘要:
Shift 2D Grid Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] moves 阅读全文
摘要:
Merge Similar Items You are given two 2D integer arrays, items1 and items2, representing two sets of items. Each array items has the following propert 阅读全文
摘要:
Element Appearing More Than 25% In Sorted Array Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that 阅读全文
摘要:
Maximum Number of Words Found in Sentences A sentence is a list of words that are separated by a single space with no leading or trailing spaces. You 阅读全文
摘要:
Check if Number Has Equal Digit Count and Digit Value You are given a 0-indexed string num of length n consisting of digits. Return true if for every 阅读全文
摘要:
Reach a Number You are standing at position 0 on an infinite number line. There is a destination at position target. You can make some number of moves 阅读全文
摘要:
Minimum Difference Between Highest and Lowest of K Scores You are given a 0-indexed integer array nums, where nums[i] represents the score of the ith 阅读全文
摘要:
Jewels and Stones You're given strings jewels representing the types of stones that are jewels, and stones representing the stones you have. Each char 阅读全文
摘要:
Minimum Absolute Difference Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elemen 阅读全文
摘要:
Robot Return to Origin There is a robot starting at the position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot 阅读全文