摘要:
题目如下: Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds 阅读全文
摘要:
题目如下: You have a pointer at index 0 in an array of size arrLen. At each step, you can move 1 position to the left, 1 position to the right in the arra 阅读全文
摘要:
题目如下: Given a square grid of integers arr, a falling path with non-zero shifts is a choice of exactly one element from each row of arr, such that no t 阅读全文
摘要:
题目如下: Given a list of intervals, remove all intervals that are covered by another interval in the list. Interval [a,b) is covered by interval [c,d) if 阅读全文
摘要:
题目如下: Given an integer array sorted in non-decreasing order, there is exactly one integer in the array that occurs more than 25% of the time. Return t 阅读全文
摘要:
题目如下: Design an Iterator class, which has: A constructor that takes a string characters of sorted distinct lowercase English letters and a number comb 阅读全文
摘要:
题目如下: Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbours of it if they exist (Flip is chang 阅读全文
摘要:
题目如下: Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the r 阅读全文
摘要:
题目如下: There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the 阅读全文
摘要:
题目如下: Given an integer number n, return the difference between the product of its digits and the sum of its digits. Example 1: Input: n = 234 Output: 阅读全文