Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 public class Solution { 2 public int reverse(int x) { 3 ...
分类:
编程语言 时间:
2014-09-23 12:10:24
阅读次数:
235
import java.util.List;
import java.util.Map; import org.apache.log4j.Logger; import com.eviware.soapui.SoapUI;
import com.eviware.soapui.SoapUIProSett...
分类:
其他好文 时间:
2014-09-22 22:33:13
阅读次数:
232
题目链接Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the". 1 class Solution { 2 publ...
分类:
其他好文 时间:
2014-09-22 20:28:23
阅读次数:
128
Based on the project created inWix: Using Patch Creation Properties - Small Update,Following changes are made to make a minor upgrade:1. Change Produc...
分类:
其他好文 时间:
2014-09-22 18:51:02
阅读次数:
169
题目大意:
传统的Nim游戏是这样的:有一些火柴堆,每堆都有若干根火柴(不同堆的火柴数量可以不同)。两个游戏者轮流操作,每次可以选一个火柴堆拿走若干根火柴。可以只拿一根,也可以拿走整堆火柴,但不能同时从超过一堆火柴中拿。拿走最后一根火柴的游戏者胜利。
本题的游戏稍微有些不同:在第一个回合中,第一个游戏者可以直接拿走若干个整堆的火柴。可以一堆都不拿,但不可以全部拿走。第二回合也一样,第二个游戏者...
分类:
其他好文 时间:
2014-09-22 17:31:44
阅读次数:
214
原文地址:http://blog.licess.org/nginx-upgrade/昨天VPS侦探的VPS因为内存爆满挂掉,顺便升级了下Nginx,到最新比较稳定稳定的0.7.65。Nginx编译后就一个小文件,不带动态库,升级也可以无缝升级,并不影响访问。首先下载Nginx:执行wget http...
分类:
其他好文 时间:
2014-09-22 15:58:42
阅读次数:
179
环境: win7 x86 已经安装vc 6.0 vs2010 System.Configuration.ConfigurationErrorsException: 创建 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Proper...
分类:
数据库 时间:
2014-09-22 14:15:32
阅读次数:
229
VS低版本打开高版本创建的项目时会提示"选择的文件是解决方案文件,但是用此应用程序的较新版本创建的,无法打开"
低版本不能向上兼容。
解决办法:
1 修改sln文件:
用文本编辑器打开sln文件,
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013...
分类:
其他好文 时间:
2014-09-22 14:10:52
阅读次数:
192
1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 class Solution { 9 public:10 vector fullJustify(vector &words, int...
分类:
其他好文 时间:
2014-09-22 13:39:42
阅读次数:
175
class Solution {public: // a valid number should be in the below form // -/+digit.digitE/e+/-digit bool isNumber(const char *s) { if (...
分类:
其他好文 时间:
2014-09-22 12:05:32
阅读次数:
180