码迷,mamicode.com
首页 >  
搜索关键字:reverse    ( 5099个结果
[Leetcode] Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-11-16 13:19:38    阅读次数:160
Leetcode-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->...
分类:其他好文   时间:2014-11-16 07:06:37    阅读次数:173
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 ...
分类:其他好文   时间:2014-11-15 21:41:07    阅读次数:315
Reverse Integer
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som...
分类:其他好文   时间:2014-11-15 13:56:56    阅读次数:181
leetcode Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:其他好文   时间:2014-11-15 08:52:11    阅读次数:170
LeetCode Reverse Linked List II
Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return...
分类:其他好文   时间:2014-11-15 00:05:30    阅读次数:259
nginx 配置反向代理(Apache+nginx)
nginx 由于其高效的并发处理能力,而开始被越来越多的人接受和认可,现在很多网站已经完全用nginx代替apache来处理静态 页面,但是动态页面的处方面,apache还是有着自己独到之处的。 下面说下何为反向代理,以及为何进行反向代理。按照百科的介绍:反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将...
分类:Web程序   时间:2014-11-14 21:14:39    阅读次数:600
Python中对复杂数据结构排序(类似C中结构体数据结构)
Python中排序主要有两个函数:sorted和列表成员函数sort,两者除了调用方式有些区别外,最显著的区别是sorted会新建一个排序好的列表并返回,而sort是修改原列表并排好序。sorted的原型是: sorted(iterable, cmp=None, key=None, reverse=False) sort的原型是: list.sort(cmp=None, key=None, ...
分类:编程语言   时间:2014-11-14 10:49:10    阅读次数:225
Leetcode Reverse Integer
对于这一道题乍一看比较简单,但实际操作中要考虑到是否有溢出,因此操作的结果应存在一个long类型的变量中,然后检测该变量是否溢出,若溢出则为0; 1 package ReverseInteger; 2 3 import java.util.ArrayList; 4 import java.util....
分类:其他好文   时间:2014-11-13 22:09:15    阅读次数:178
Leetcode--Reverse Nodes in k-Group
Problem Description:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a mul...
分类:其他好文   时间:2014-11-12 22:33:46    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!