码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
Combinations
问题描述: Given 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 solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4],] 解题思路...
分类:其他好文   时间:2014-07-31 00:04:35    阅读次数:204
HDU2138 随机素数测试 Miller-Rabin算法
题目描述 Give you a lot of positive integers, just to find out how many prime numbers there are.. In each case, there is an integer N representing the num...
分类:其他好文   时间:2014-07-30 23:35:35    阅读次数:300
Simple GDB case
to be added...gdb a.out[Inferior 1 (process 9718) exited with code 05](gdb) listLine number 15 out of range; t.c has 14 lines.(gdb) list 11 #include2 ...
分类:数据库   时间:2014-07-30 23:33:25    阅读次数:352
hdu 3117 Fibonacci Numbers
Fibonacci Numbers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1766    Accepted Submission(s): 695 Problem Description The Fibon...
分类:其他好文   时间:2014-07-30 20:50:54    阅读次数:276
[LeetCode] Sum Root to Leaf Numbers(bfs)
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which...
分类:其他好文   时间:2014-07-30 11:30:33    阅读次数:247
groovy入门 第05章 基本输入输出
基本输入输出 5.1基本输出 print XXX    //同一行输出 println XXX //换行输出   输出字符串: def message ="My name is Michael" println("here is :"+${message})   输出列表和映射 def numbers =[11,12,13,14] println  "Numbers:${nu...
分类:其他好文   时间:2014-07-30 10:08:13    阅读次数:287
Combinations leetcode java
题目:Given 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 solution is:[ [2,4], ...
分类:编程语言   时间:2014-07-30 09:58:03    阅读次数:218
codeforces 17A Noldbach problem
Noldbach problem time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output Nick is interested in prime numbers. Once h...
分类:数据库   时间:2014-07-30 01:07:23    阅读次数:308
UVa 401 Palindromes(字符串,回文)
Palindromes  A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when t...
分类:其他好文   时间:2014-07-29 21:57:12    阅读次数:308
C++ Notes 1 - size_type - Accelerated Ch3
1. 为什么用string::size_type而不是int?--Why usestring::size_type?intis supposed to work! it holds numbers!--A short holds numbers too. So does a signed char....
分类:编程语言   时间:2014-07-29 17:37:52    阅读次数:278
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!