最新 最热

Combination Sum II 组合数求和之2-Leetcode

原题:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in...

2018-03-19
1

21副GIF动图让你了解各种数学概念

“让我们面对它;总的来说数学是不容易的,但当你征服了问题,并达到新的理解高度,这就是它给你的回报。”——Danica McKellar数学是很难的学科,但因为它是科学家用数学来解释宇宙的语言,我们...

2018-03-16
1

【编程基础】C语言循环语句解析

循环语句是一种很重要的结构,这种结构的特点就是在某种条件下,会重复循环执行某一段代码,直到条件不成立为止。这里的条件称为循环条件,重复执行的那段代码称为循环体。其实不只是C语言有循环语句,几乎所有语言都有循环语...

2018-03-14
1

No.001 Two Sum

Two SumTotal Accepted: 262258Total Submissions: 1048169Difficulty: EasyGiven an array of integers, return indices of the two numbers such that they add up t...

2018-02-27
1

HDOJ 1013

Digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30962 Accepted Submission(s): 9508...

sum
2018-01-17
1

Leetcode 16 3Sum Closest

Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may ...

2018-01-12
1

Leetcode 15 3Sum + 有趣的小BUG

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all u

2018-01-12
1

Leetcode 64 Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note: Yo...

2018-01-12
1

Leetcode 53 Maximum Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2,1,-5,4],...

2018-01-12
1

Leetcode 120 Triangle

Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following ...

2018-01-12
1