ref: http://www.lintcode.com/en/problem/coins-in-a-line/ There are n coins in a line. Two players take turns to take one or two coins from right side ...
分类:
其他好文 时间:
2016-11-05 07:43:06
阅读次数:
256
ref: http://www.lintcode.com/en/problem/coins-in-a-line-ii/# 有个博客说的挺好的,比九章自己写的清楚 http://www.cnblogs.com/theskulls/p/4963317.html 意思是这样的: 如果我们在第i个位置,那么 ...
分类:
其他好文 时间:
2016-11-05 07:41:30
阅读次数:
258
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:
其他好文 时间:
2016-11-03 14:12:30
阅读次数:
254
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:
其他好文 时间:
2016-11-03 01:44:57
阅读次数:
280
Problem: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the tot ...
分类:
其他好文 时间:
2016-11-01 13:38:02
阅读次数:
193
https://leetcode.com/problems/arranging-coins/ ...
分类:
其他好文 时间:
2016-10-31 14:04:24
阅读次数:
220
A simple math.. take care of data overflow though. ...
分类:
其他好文 时间:
2016-10-31 12:46:43
阅读次数:
141
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee ...
分类:
其他好文 时间:
2016-10-26 07:15:58
阅读次数:
205
People in Cubeland use cubic coins. Not only the unit of currency iscalled a cube but also the coins are shaped like cubes and their valuesare cubes. ...
分类:
其他好文 时间:
2016-10-19 19:19:31
阅读次数:
124