码迷,mamicode.com
首页 >  
搜索关键字:humble numbers    ( 7694个结果
Reduced ID Numbers (memset 的关键用处)
memset...
分类:其他好文   时间:2014-09-06 11:01:33    阅读次数:243
Leetcode: 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.N...
分类:其他好文   时间:2014-09-06 05:27:22    阅读次数:223
Combination Sum II
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 numb...
分类:其他好文   时间:2014-09-05 17:35:41    阅读次数:227
Leetcode dfs Sum Root to Leaf Numbers
Sum Root to Leaf Numbers  Total Accepted: 20237 Total Submissions: 67979My Submissions Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a numbe...
分类:其他好文   时间:2014-09-05 16:12:01    阅读次数:200
HDU 1058 Humble Numbers (打表)
题目链接:HDU 1058 Humble Numbers 题意:一些数他们的素数因子只有2,3,5,7。求这些数。 因为这些数的因子只可能是2,3,5,7。所以通过2,3,5,7这个四个数构造这个数列,这个数列靠后的数必定是前面的数乘上2,3,5,7得到。 AC代码: #include #include #define ll __int64 using namesp...
分类:其他好文   时间:2014-09-05 14:26:41    阅读次数:103
Leetcode: Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-09-05 12:36:41    阅读次数:227
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-09-05 05:31:40    阅读次数:176
LeetCode: Combinations
LeetCode: CombinationsGiven two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solu...
分类:其他好文   时间:2014-09-04 22:03:20    阅读次数:221
冒泡、二分排序
1 #include 2 3 void main() 4 { 5 int a[10] = {0}; 6 int i,j,t; 7 printf("input 10 numbers:\n"); 8 for (i = 0; i a[i+1]) {16 ...
分类:其他好文   时间:2014-09-04 18:32:49    阅读次数:203
Swift Basic 2
传入函数的参数可以简单的用一个数组动态传入 func?sumOf(numbers:?Int...)?->?Int?{ ????var?sum?=?0 ????for?number?in?numbers?{ ????????sum?+=?number ????} ????ret...
分类:编程语言   时间:2014-09-04 17:15:10    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!