1.2 用C或C++实现void reverse(char *str)函数,即反转一个null结尾的字符串。C++实现代码:#include#includeusing namespace std;/*反转字符串*/void reverse(char *str){ if(!str) ...
分类:
其他好文 时间:
2014-12-03 13:53:22
阅读次数:
155
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".class Solution: # @param s,...
分类:
其他好文 时间:
2014-12-03 12:25:23
阅读次数:
147
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-12-03 12:14:39
阅读次数:
169
问题描述:
基本思路:
代码:
public ListNode reverse(ListNode head,int n) //Java
{
ListNode tmp = head;
int step = 1;
tmp = tmp.next;
ListNode pre = head;...
分类:
其他好文 时间:
2014-12-03 00:29:30
阅读次数:
110
一、反向代理:Web服务器的“经纪人”1.1 反向代理初印象 反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,此时代理服务器对外就表现为一个服务器。 ....
分类:
其他好文 时间:
2014-12-02 10:12:47
阅读次数:
169
问题描述:
Given a linked list, reverse the nodes of a linked list
k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain ...
分类:
其他好文 时间:
2014-12-01 22:32:51
阅读次数:
230
一、反向代理:Web服务器的“经纪人”1.1 反向代理初印象 反向代理(Reverse Proxy)方式是指以代理服务器来接受internet上的连接请求,然后将请求转发给内部网络上的服务器,并将从服务器上得到的结果返回给internet上请求连接的客户端,此时代理服务器对外就表现为一个服务器。 ....
分类:
Web程序 时间:
2014-12-01 15:39:01
阅读次数:
267
一、原题
Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer...
分类:
其他好文 时间:
2014-11-29 11:55:26
阅读次数:
204
C++模板的学习会遇到各种各样的问题,对于一个某种程度上的新手而言,难免会碰到一些问题。但泛型编程拥有着“双拳敌四手”的绝妙心法,威风八面,实在也让自己按捺不住。前些天自己一次对reverse模板的实现过程让自己体会到解决问题的乐趣,所以如今每每遇到问题就会尝试着去探个究竟,有时候自觉也陷落于诸多语...
分类:
其他好文 时间:
2014-11-29 11:46:17
阅读次数:
175
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-29 06:59:16
阅读次数:
153