最新 最热

Leetcode 257. Binary Tree Paths

Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / 2 3 5 All root-to-leaf paths are:["1-...

2018-01-12
11

Leetcode 240. Search a 2D Matrix II

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascendi...

2018-01-12
9

Leetcode 300. Longest Increasing Subsequence

Given an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The longest increas...

2018-01-12
10

Leetcode 299. Bulls and Cows

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your fr...

2018-01-12
21

Leetcode 279. Perfect Squares

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For example, given n = 12, return...

2018-01-12
7

关于Form.Close跟Form.Dispose

我们在Winform开发的时候,使用From.Show来显示窗口,使用Form.Close来关闭窗口。熟悉Winform开发的想必对这些非常熟悉。但是Form类型实现了IDisposable接口,那我...

2018-01-04
18

[LeetCode] 90. Subsets II

该文介绍了如何求一个整数数组的所有可能子集,包括不包含重复元素的子集和包含重复元素的子集,并针对包含重复元素的情况给出了具体的解决方案。...

2018-01-03
17

[LeetCode] 78. Subsets

【原题】 Given a set of distinct integers, nums, return all possible subsets.Note: The solution set

2018-01-03
13

[LeetCode] 119. Pascal's Triangle II

该文介绍了如何返回杨辉三角的第 k 行,通过模拟杨辉三角的过程来得到目标。首先,利用组合数的方法求得每一个元素的值,元素的个数为 k+1。然后,通过循环模拟杨辉三角的过程,得到目标。...

2018-01-03
15

leetcode之-题34

腾讯云开发者社区是腾讯云官方开发者社区,致力于打造开发者的技术分享型社区。提供专栏,问答,沙龙等产品和服务,汇聚海量精品云计算使用和开发经验,致力于帮助开发者快速成长与发展,营造开放的云计算技术生态圈。...

2018-01-02
11