码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
基础篇——序列化和文件的输入输出
一、对象序列化(存储) FileOutputStream fileStream = new FileOuputStream("file.ser"); ObjectOutputStream os = new ObjectOutputStream(fileStream); os.writeObject(one); os.writeObject(two); os.close(); 当对象被序列...
分类:其他好文   时间:2014-07-29 14:47:18    阅读次数:195
poj1753,Flip Game
Flip Game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 30449   Accepted: 13232 Description Flip game is played on a rectangular 4x4 field with two-sided p...
分类:其他好文   时间:2014-07-29 14:33:28    阅读次数:225
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!