码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
LeetCode --- 92. Reverse Linked List II
题目链接: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: ...
分类:其他好文   时间:2015-04-09 11:57:57    阅读次数:209
Add two numbers
题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin...
分类:其他好文   时间:2015-04-09 06:20:09    阅读次数:147
练习编程之leetcode篇----------(2)Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2015-04-08 22:55:54    阅读次数:142
Leetcode2 Add Two Numbers
描述: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin...
分类:其他好文   时间:2015-04-08 21:15:14    阅读次数:107
Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-04-08 21:10:38    阅读次数:108
POJ3581---Sequence(后缀数组)
DescriptionGiven a sequence, {A1, A2, …, An} which is guaranteed A1 > A2, …, An, you are to cut it into three sub-sequences and reverse them separately to form a new one which is the smallest possible...
分类:编程语言   时间:2015-04-08 16:28:10    阅读次数:195
Remove Duplicates from Sorted List II
和I 比起来其实很不一样,反而很类似于linkedlist reverse,不断的看pre.next的东西,我自己想了好久,开始用三个指针,完全糊涂,还是退回到原来的code,才明了public class Solution { public ListNode deleteDuplicates...
分类:其他好文   时间:2015-04-08 12:24:47    阅读次数:95
190. Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-04-08 07:55:03    阅读次数:150
92:Reverse Linked List II翻转链表【链表】
题目连接:click~/*题意:将链表中第m到n个结点翻转 *//** *思路:为更好处理表头和第m个结点,引入root结点,同时记录 * 第m-1个结点。从第m个结点开始遍历至第n个结点,将已经 * 遍历过的结点插入在第m-1个结点后,并保证第m个结点的next * ...
分类:其他好文   时间:2015-04-07 19:35:51    阅读次数:99
LINQ标准查询操作符(一)——select、SelectMany、Where、OrderBy、OrderByDescending、ThenBy、ThenByDescending和Reverse
本文来自:http://blog.csdn.net/xuejianwu/article/details/6931804一、投影操作符1. SelectSelect操作符对单个序列或集合中的值进行投影。下面的示例中使用select从序列中返回Employee表的所有列:[csharp]view pla...
分类:其他好文   时间:2015-04-07 19:27:43    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!