码迷,mamicode.com
首页 >  
搜索关键字:amp    ( 86777个结果
Remove Duplicates from Sorted Array
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
Remove Element
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开发笔记
对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
Reverse反转算法--C++实现
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
IDEA各种问题解决方案
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
UVALive 6661 解题心得
原题: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
cf #309a A - Kyoya and Photobooks
A -Kyoya and PhotobooksTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionKyoya Ootori is selling photobooks of...
分类:其他好文   时间:2015-08-02 19:46:34    阅读次数:106
Algorithm --> KMP算法
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之mysql安装、初始化,以及mysql相关命令的使用
安装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
Length of Last Word
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!