16. 3Sum Closest 题目 Given an array S of n integers, find three integers in S such that the sum is closest to a…
标签:LeetCode题目解答
112. Path Sum
欢迎fork and star:Nowcoder-Repository-github 112. Path Sum 题目 Given a binary tree and a sum, determine if the tr…
LeetCode --- 89. Gray Code
LeetCode — 89. Gray Code 题目 The gray code is a binary numeral system where two successive values differ …
69. Sqrt(x)
69. Sqrt(x) 题目 Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non…
LeetCode | Unique Paths II
题目: Follow up for “Unique Paths”: Now consider if some obstacles are added to the grids. How many …
274. H-Index
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to com…
221. Maximal Square
Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing only 1’…
[LeetCode] Ambiguous Coordinates 模糊的坐标
We had some 2-dimensional coordinates, like "(1, 3)" or "(2, 0.5)". Then, we remov…
【Leetcode】1. Two Sum 集合中找到两个元素之和等于给定值
1. 题目 Given an array of integers, return indices of the two numbers such that they add up to a specific target…
[LeetCode] Rotate List 旋转链表, Rotate Array 旋转数组
Given a list, rotate the list to the right by k places, where k is non-negative. Fo…
[LeetCode] Find the Celebrity 寻找名人
Suppose you are at a party with n people (labeled from 0 to n - 1) and among t…
[LeetCode] Super Washing Machines 超级洗衣机
You have n super washing machines on a line. Initially, each washing machine has some dresses…