码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
POJ3373:Changing Digits(记忆化)
Description Given two positive integers n and k, you are asked to generate a new integer, say m, by changing some (maybe none) digits of n, such that the following properties holds: m contains n...
分类:其他好文   时间:2014-07-29 14:22:18    阅读次数:225
LeetCode "Divide Two Integers"
A very interesting numeric problem. It involves a lot tricks.Linear search (by +\-) is not feasible - too slow. So binary search is a good idea. Also ...
分类:其他好文   时间:2014-07-29 14:02:08    阅读次数:187
HDU - 1757 A Simple Math Problem (构造矩阵)
Description Lele now is thinking about a simple function f(x). If x If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x-3) + …… + a9 * f(x-10); And ai(0 Now, I will give a0 ~ a9 and two...
分类:其他好文   时间:2014-07-29 13:13:36    阅读次数:205
Laravel 4 Development on PHPStorm
Laravel & PHPStorm – the best of the two worlds. Laravel is the most popular PHP web framework today. PHPStorm is the best PHP IDE that money can buy....
分类:Web程序   时间:2014-07-29 12:42:06    阅读次数:309
如何在JS数组特定索引处指定位置插入元素?
如何在JS数组特定索引处指定位置插入元素?需求: 将一个元素插入到现有数组的特定索引处。听起来很容易和常见,但需要一点时间来研究它。// 原来的数组var array = ["one", "two", "four"];// splice(position, numberOfItemsToRemove...
分类:Web程序   时间:2014-07-29 12:09:06    阅读次数:429
LeetCode : add two numbers
解法:比较简单,用plus表示进位 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(in...
分类:其他好文   时间:2014-07-29 10:53:06    阅读次数:273
poj------2406 Power Strings
A -Power Strings 难度:☆☆Time Limit:3000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 2406DescriptionGiven two strings a and...
分类:其他好文   时间:2014-07-28 21:23:54    阅读次数:216
Shell中的循环语句实例
1.for循环语句实例1.1 最基本的for循环#!/bin/bashfor x in one two three fourdo echo number $xdone注:"for" 循环总是接收 "in" 语句之后的某种类型的字列表。在本例中,指定了四个英语单词,但是字列表也可以引用磁盘上的文件,甚...
分类:其他好文   时间:2014-07-28 19:10:04    阅读次数:307
HDU-4879-ZCC loves march(map+set+并查集)
Description On a m*m land stationed n troops, numbered from 1 to n. The i-th troop's position can be described by two numbers (xi,yi) (1 Then there are t minutes, in each minute one of the followi...
分类:其他好文   时间:2014-07-28 16:25:13    阅读次数:356
POJ 1837 Balance (DP)
Description Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two arms of negligible weight and each arm's length...
分类:其他好文   时间:2014-07-28 16:14:46    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!