- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode Palindrome 相关问题
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinking of converting the integer to s
2015-07-16 14:47:08 359
原创 LeetCode Isomorphic Strings
Isomorphic Strings Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character
2015-06-06 19:41:39 278
转载 。。。
vector plusOne(vector &digits) { int i,j,carry=1; // traditional long addition.. for(i=digits.size()-1;i>=0&&carry;i--){ int sum=carry+digits[i]; carry=sum/10; digits[i]=sum%10; } if(carry){ // if car
2015-01-21 21:46:15 308
原创 pat 1061 字符串比较
#include #include #include #include using namespace std;int main(){//ifstream cin("a.txt");string str[4];string s;int i,j;char temp;string day[8] = {"MON","TUE","WED","THU","FR
2014-08-10 18:01:35 307
转载 动态编译和静态编译
静态编译就是在编译的时候把你所有的模块都编译进exe里去,当你启动这个exe的时候所有模块都加载进来了。你写小程序没问题,但程序一大,加载的过程(就是当你运行程序时初始化的过程)就比较费力了。。大多数ppc的硬件配置还是很一般的。。。。。。动态编译就不一样了,你编译的时候那些模块都没有编译进去,一般情况下你可以把那些模块都编译成dll,这样你启动程序(初始化)的时候这些模块不会被加载,而是在运
2013-12-09 16:37:40 506
转载 cin、cin.get()、cin.getline()、getline()、gets()
cin、cin.get()、cin.getline()、getline()、gets()等函数的用法学C++的时候,这几个输入函数弄的有点迷糊;这里做个小结,为了自己复习,也希望对后来者能有所帮助,如果有差错的地方还请各位多多指教(本文所有程序均通过VC 6.0运行)转载请保留作者信息;1、cin1、cin.get()2、cin.getline()3、getline
2013-03-17 22:16:06 375
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人