Question Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. ...
分类:
其他好文 时间:
2020-01-10 00:43:41
阅读次数:
76
Implement a SnapshotArray that supports the following interface: SnapshotArray(int length) initializes an array-like data structure with the given len ...
分类:
其他好文 时间:
2020-01-09 13:28:14
阅读次数:
70
link to problem Description: Given a rooted binary tree, return the lowest common ancestor of its deepest leaves. Recall that: The node of a binary tr ...
分类:
其他好文 时间:
2020-01-09 11:52:53
阅读次数:
82
原题链接在这里:https://leetcode.com/problems/rotting-oranges/ 题目: In a given grid, each cell can have one of three values: the value 0 representing an empty ...
分类:
其他好文 时间:
2020-01-09 10:19:58
阅读次数:
77
Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: Input: 3 Output: 5 Explanation: Given n = 3, the ...
分类:
其他好文 时间:
2020-01-07 13:18:06
阅读次数:
58
Description: Given an integer array arr and an integer k, modify the array by repeating it k times. For example, if arr = [1, 2] and k = 3 then the mo ...
分类:
其他好文 时间:
2020-01-06 21:01:13
阅读次数:
108
link to problem Description: Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a ...
分类:
其他好文 时间:
2020-01-06 09:54:55
阅读次数:
84
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 ...
分类:
其他好文 时间:
2020-01-05 11:37:20
阅读次数:
72
题意:Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. n (n ≤ 30), k (k ≤ 109) and m (m < 104) 输出结果矩阵 解法: 若 n是偶数 S ...
分类:
其他好文 时间:
2020-01-05 10:09:31
阅读次数:
80
原题链接在这里:https://leetcode.com/problems/guess-the-word/ 题目: This problem is an interactive problem new to the LeetCode platform. We are given a word lis ...
分类:
其他好文 时间:
2020-01-05 10:02:16
阅读次数:
77