码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
C语言冒泡排序法
#include void main() { int a[10]; int i,j,t; printf("input 10 numbers:\n"); for(i=0;ia[i+1]) /*相邻两个数比较,想降序只要改成a[i]<a[i+1]*/ { t=a[i]; a[i]=a[i+1]...
分类:编程语言   时间:2014-08-23 17:32:31    阅读次数:157
Triangle
Triangle  Total Accepted: 16109 Total Submissions: 60327My Submissions Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row...
分类:其他好文   时间:2014-08-23 16:54:11    阅读次数:253
UVA - 11481 Arrange the Numbers
Consider this sequence {1, 2, 3, … , N}, as a initial sequence of firstN natural numbers. You can rearrange this sequence in many ways. Therewill be N! different arrangements. You have to calculate t...
分类:其他好文   时间:2014-08-23 15:27:01    阅读次数:202
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II  Total Accepted: 17137 Total Submissions: 69046My Submissions Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only d...
分类:其他好文   时间:2014-08-23 14:00:40    阅读次数:187
Java 实现多线程文件下载(HTTP)
实现原理:用httpConnection.setRequestProperty("RANGE", "bytes= xxx-xxx");获取指定的数据块用RandomAccessFile实现文件随机访问,写入指定数据块到文件.关键事项:获取远程文件大小,根据文件大小确定下载线程个数(可固定线程数,也可...
分类:编程语言   时间:2014-08-23 12:38:30    阅读次数:252
swift 闭包
swift 中的闭包类似OC中的快代码和java 匿名内部类。它是预先定义了一段可以执行的代码,简单的可以将闭包看做是函数的一种简写example:将一个数组按照一定的函数映射成另一个数组有两种写法:普通函数的写法:var numbers = [20, 19, 7, 12]“numbers.map(...
分类:编程语言   时间:2014-08-23 00:58:49    阅读次数:359
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-...
分类:其他好文   时间:2014-08-22 22:22:09    阅读次数:233
Tair LDB基于Prefixkey的范围查找性能优化项目之如何提取key的prefix_size信息
New Document/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */ /* Author: Nicolas Hery - http://nicolashery.com */ /* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */ /* Source: http...
分类:数据库   时间:2014-08-22 19:47:49    阅读次数:362
leetcode之add two numbers
/*#include using namespace std;  *//** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ cla...
分类:其他好文   时间:2014-08-22 19:46:39    阅读次数:147
POJ1844 Sum
Sum Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 10160   Accepted: 6674 Description Consider the natural numbers from 1 to N. By associating to each num...
分类:其他好文   时间:2014-08-22 17:55:49    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!