码迷,mamicode.com
首页 >  
搜索关键字:one or more sections    ( 34236个结果
Reverse Linked List II
题目 Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m,...
分类:其他好文   时间:2014-06-11 06:07:11    阅读次数:392
JQuery之初探
软考过后又进入了紧张的B/S学习阶段,由于自己的进度比较慢,所以更要加进学习。现在就来总结下JQuery的一些基础知识: JQuery定义         jQuery是一套跨浏览器的JavaScript库,简化HTML与JavaScript之间的操作。其宗旨是——WRITE LESS,DO MORE,写更少的代码,做更多的事情。 JQuery特点         1、以强大的CSS...
分类:Web程序   时间:2014-06-11 00:39:35    阅读次数:350
[LeetCode] Merge Sorted Array [22]
题目: Given two sorted integer arrays A and B, merge B into A as one sorted array. 原题链接(点我) 解题思路: 合并两个数组为一个有序数组,这题也很简单,唯一考查的地方就是怎么处理数组,是从前往后还是从后往前。一般情况,从后往前的效率比从前往后高,也要省不少事。代码如下,从后开始合并。 代码实现:...
分类:其他好文   时间:2014-06-11 00:37:42    阅读次数:314
hust 1260 Dominos && hust 1516 Dominos
题目描述Dominos are lots of fun. Children like to stand the tiles on their side in long lines. When one domino falls, it knocks down the next one, which k...
分类:其他好文   时间:2014-06-10 12:08:55    阅读次数:232
[LeetCode OJ] Single Number之一 ——Given an array of integers, every element appears twice except for one. Find that single one.
1 class Solution { 2 public: 3 int singleNumber(int A[], int n) { 4 int i,j; 5 for(i=0; i<n; i++) 6 { 7 for(j...
分类:移动开发   时间:2014-06-10 11:41:55    阅读次数:259
leetcode--Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:其他好文   时间:2014-06-10 10:41:04    阅读次数:147
Uva 11489 - Integer Game
Two players, S and T, are playing a game where they make alternate moves. S plays first.  In this game, they start with an integer N. In each move, a player removes one digit from the integer and p...
分类:其他好文   时间:2014-06-10 06:31:29    阅读次数:302
projecteuler---->problem=24----Lexicographic permutations
问题描述: A permutation is an ordered arrangement of objects. For example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. If all of the permutations are listed numerically or alphabeti...
分类:其他好文   时间:2014-06-10 06:13:21    阅读次数:299
Plus One
题目 Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is at the head of the list. 方法 ...
分类:其他好文   时间:2014-06-10 06:12:06    阅读次数:285
MongoDB for Java入门
IntroductionThis page is a brief overview of working with the MongoDB Java Driver.For more information about the Java API, please refer to theonline A...
分类:数据库   时间:2014-06-10 00:56:32    阅读次数:931
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!