码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
LeetCode #274 H-Index
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
1146. Snapshot Array
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
1123. Lowest Common Ancestor of Deepest Leaves
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
LeetCode 994. Rotting Oranges
原题链接在这里: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
[LC] 96. Unique Binary Search Trees
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
Leetcode 1191. K-Concatenation Maximum Sum
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
1143. Longest Common Subsequence
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
[LC] 102. Binary Tree Level Order Traversal
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
LeetCode 843. Guess the Word
原题链接在这里: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
24278条   上一页 1 ... 92 93 94 95 96 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!