class Solution {public: int removeDuplicates(vector& nums) { vectornew_nums; int s = nums.size(); int len=0; for(int i=...
分类:
其他好文 时间:
2015-08-02 21:18:24
阅读次数:
97
class Solution {public: int removeElement(vector& nums, int val) { vector new_nums; int i=0; int s=nums.size(); while(i...
分类:
其他好文 时间:
2015-08-02 21:15:06
阅读次数:
73
对netty 和 nio的认识尚浅,分享最近所学到的一些知识,不对的地方还望指正。
Netty介绍
Netty is an asynchronous event-driven network application framework
for rapid development of maintainable high performance protocol servers &...
分类:
Web程序 时间:
2015-08-02 20:06:52
阅读次数:
316
1 #include 2 3 using namespace std; 4 //交换的函数 5 void replaced(int &a,int &b){ 6 int t = a; 7 a = b; 8 b = t; 9 }10 //反转11 void reversed...
分类:
编程语言 时间:
2015-08-02 19:57:08
阅读次数:
165
1. IDEA学习网站:http://www.youmeek.com/idea/2. 字体设置乱码问题:http://note.youdao.com/share/?id=c6184893c8d036641efc40abe3e86347&type=note3. 编码设置:建议将IDE的编码、项目的编码...
分类:
其他好文 时间:
2015-08-02 19:50:49
阅读次数:
125
原题:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4673我的代码:#include#includeusing namespace std...
分类:
其他好文 时间:
2015-08-02 19:47:21
阅读次数:
102
A -Kyoya and PhotobooksTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionKyoya Ootori is selling photobooks of...
分类:
其他好文 时间:
2015-08-02 19:46:34
阅读次数:
106
KMP算法一、传统字符串匹配算法/* * 从s中第sIndex位置开始匹配p * 若匹配成功,返回s中模式串p的起始index * 若匹配失败,返回-1 */int index(const std::string &s, const std::string &p, const int sIndex....
分类:
编程语言 时间:
2015-08-02 19:36:50
阅读次数:
152
安装mysql:1.yum#wgethttp://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm从mysql官网上下载mysql的repo#yum-yinstallmysql-server2.二进制源码包#tar-xfmysql-xxx.tar.bz2#cdmysql-xxx#make&&makeinstall3.源码编译安装参见lamp中mysql的安装。mysql..
分类:
数据库 时间:
2015-08-02 18:30:13
阅读次数:
259
class Solution {public: int lengthOfLastWord(string s) { int i=0; int len=0; while(s[i]&&s[i]==' ') i++; //去掉开头的空格 boo...
分类:
其他好文 时间:
2015-08-02 18:14:51
阅读次数:
114