Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100 ...
分类:
其他好文 时间:
2020-06-06 11:10:45
阅读次数:
57
问题:Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3, ...
分类:
其他好文 时间:
2020-06-06 01:16:22
阅读次数:
93
Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <= i + K ...
分类:
其他好文 时间:
2020-06-04 23:16:41
阅读次数:
110
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:
其他好文 时间:
2020-06-04 11:56:26
阅读次数:
48
题目如下: Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Retur ...
分类:
其他好文 时间:
2020-06-04 10:33:57
阅读次数:
77
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [0,1] Output: 2 Explanation: [0 ...
分类:
其他好文 时间:
2020-06-04 01:36:55
阅读次数:
59
题目如下: Given two strings: s1 and s2 with the same size, check if some permutation of string s1 can break some permutation of string s2 or vice-versa (i ...
分类:
其他好文 时间:
2020-06-03 23:41:15
阅读次数:
108
题目如下: Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check ...
分类:
其他好文 时间:
2020-06-03 23:40:35
阅读次数:
99
题目如下: You are given an integer num. You will apply the following steps exactly two times: Pick a digit x (0 <= x <= 9). Pick another digit y (0 <= y < ...
分类:
其他好文 时间:
2020-06-03 23:33:43
阅读次数:
70
题目如下: You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi. Return the destin ...
分类:
其他好文 时间:
2020-06-03 23:29:25
阅读次数:
76