print "I will now count my chickens:"print "Hens", 25 + 30 / 6print "Roosters", 100 - 25 * 3 % 4print "Now I will count the eggs:"print 3 + 2 + 1 - 5 ...
分类:
其他好文 时间:
2014-10-21 10:03:59
阅读次数:
178
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:
其他好文 时间:
2014-10-20 18:50:54
阅读次数:
111
【题目】
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: You can only move either down o...
分类:
其他好文 时间:
2014-10-19 21:25:37
阅读次数:
247
看到网上的一些写法,10进制/12进制/16进制 都写了个子函数,其实统一写个进制求和子函数很简单...
分类:
其他好文 时间:
2014-10-19 17:12:10
阅读次数:
189
问题重述: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive num...
分类:
其他好文 时间:
2014-10-19 16:59:06
阅读次数:
232
Minimum Path Sum
Total Accepted: 19916 Total
Submissions: 63796My Submissions
Question
Solution
Given a m x n grid filled with non-negative numbers, find a path from top left to b...
分类:
其他好文 时间:
2014-10-19 13:03:26
阅读次数:
162
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n...
分类:
其他好文 时间:
2014-10-19 01:13:19
阅读次数:
210
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:
其他好文 时间:
2014-10-18 19:43:01
阅读次数:
179
Description
Let A1, A2, ... , AN be N elements. You need to deal with two kinds of operations. One type of operation is to add a given number to a few numbers in a given interval. The other is to q...
分类:
编程语言 时间:
2014-10-18 16:59:56
阅读次数:
321