Given integers N and M, output in how many ways you can take N distinct positive integers such that sum of those integers is M. Since result can be huge, output it modulo 1000000007
(10^9 + 7)
N ...
分类:
其他好文 时间:
2014-12-03 00:24:54
阅读次数:
230
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2014-12-01 17:31:54
阅读次数:
145
DescriptionThe sequence of n ? 1 consecutive composite numbers (positive integers that are not prime and not equal to 1) lying between two successive ...
分类:
其他好文 时间:
2014-11-30 14:00:35
阅读次数:
192
This Design Idea explores level-shifting an I2C bus from 5V/ground (positive domain) to ground/–5V (negative domain). In multisupply systems, you some...
分类:
其他好文 时间:
2014-11-28 14:15:37
阅读次数:
226
Low-ripple-voltage positive-to-negative dc/dc converters find use in many of today's high- frequency and noise-sensitive disk drives, battery-powered ...
分类:
其他好文 时间:
2014-11-28 14:08:43
阅读次数:
251
The conventional way to produce dual (positive and negative) outputs from a single positive input is to use a transformer. Although such designs are r...
分类:
其他好文 时间:
2014-11-28 14:08:17
阅读次数:
145
Buck regulators find wide application as step-down regulators for converting large positive input voltages into a smaller positive output voltages.Fig...
分类:
其他好文 时间:
2014-11-28 14:05:24
阅读次数:
269
Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm sh...
分类:
其他好文 时间:
2014-11-27 00:12:55
阅读次数:
338
Description
There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the third
...
分类:
其他好文 时间:
2014-11-26 22:47:13
阅读次数:
357
BackgroundThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that dig...
分类:
其他好文 时间:
2014-11-26 20:37:15
阅读次数:
145