首页 > 2015年01月05日 > 全部分享
LeetCode-Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For ....
分类:其他   时间:2015-01-05 08:15:03    收藏:0  评论:0  赞:0  阅读:273
LeetCode-Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:其他   时间:2015-01-05 08:14:43    收藏:0  评论:0  赞:0  阅读:250
LeetCode-Reverse Words in a String
Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.C...
分类:其他   时间:2015-01-05 08:14:23    收藏:0  评论:0  赞:0  阅读:282
HDU 1272 小希的迷宫【并查集】
解题思路:将给出的点都合并之后,判断是否同时满足两个条件1 只构成一棵树2 这棵树上没有环需要注意的是 输入 0 0的时候输出"Yes",即空树也是树 对于只含有一个节点的树,也是一棵树例如输入 2 2 0 0,0 0为输入的终止,2 2构成一棵只含节点2的树小希的迷宫Time Limit: 200...
分类:其他   时间:2015-01-05 08:14:13    收藏:0  评论:0  赞:0  阅读:322
IOS xcode安装
xcode软件下载地址:可以通过虚拟机共享文件夹将xcode传递给虚拟机上的os系统:第一个程序创建:
分类:移动平台   时间:2015-01-05 08:14:03    收藏:0  评论:0  赞:0  阅读:300
cobbler 安装搭建,详细
一、cobbler安装准备1.关闭iptables与selinux1#chkconfigiptablesoff2#vi/etc/selinux/configSELINUX=disabled2.安装源准备并安装cobbler软件说明:基础源与epel源。rpm–ivhhttp://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm(要装32位机器可?.
分类:其他   时间:2015-01-05 07:12:05    收藏:0  评论:0  赞:0  阅读:514
[LeetCode]84 Largest Rectangle in Histogram
https://oj.leetcode.com/problems/largest-rectangle-in-histogram/http://blog.csdn.net/linhuanmars/article/details/20524507publicclassSolution{ publicintlargestRectangleArea(int[]height) { //SolutionA //returnlargestRectangleArea_Expand(height); //SolutionB ..
分类:其他   时间:2015-01-05 07:11:54    收藏:0  评论:0  赞:0  阅读:334
[LeetCode]89 Gray Code
https://oj.leetcode.com/problems/gray-code/publicclassSolution{ publicList<Integer>grayCode(intn) { //规律: //n=0: //0 // //n=1: //0 //1 // //n=2: //00 //01 //11 //10 // //n=3 //000 //001 //011 //010 //110 //111 //101 //100 // //设n-1结果集为s //正序..
分类:其他   时间:2015-01-05 07:11:44    收藏:0  评论:0  赞:0  阅读:163
tkprof
TKPROF可以把Trace源文件转换为更易读的形式。Usage:tkproftracefileoutputfile[explain=][table=][print=][insert=][sys=][sort=]
分类:其他   时间:2015-01-05 07:11:34    收藏:0  评论:0  赞:0  阅读:329
shell 字符串处理
在做shell批处理程序时候,经常会涉及到字符串相关操作。有很多命令语句,如:awk,sed都可以做字符串各种操作。其实shell内置一系列操作符号,可以达到类似效果,大家知道,使用内部操作符会省略启动外部程序等时间,因此速度会非常的快。一、判断读取字符串值表达式 含义${var..
分类:系统服务   时间:2015-01-05 07:11:24    收藏:0  评论:0  赞:0  阅读:291
[LeetCode]88 Merge Sorted Array
https://oj.leetcode.com/problems/merge-sorted-array/http://blog.csdn.net/linhuanmars/article/details/19712333publicclassSolution{ publicvoidmerge(intA[],intm,intB[],intn){ //SolutionA: //merge_NoExtraSpace(A,m,B,n); //SolutionB: merge_ExtraSpace(A,m,B,n);..
分类:其他   时间:2015-01-05 07:11:13    收藏:0  评论:0  赞:0  阅读:332
[LeetCode]90 Subsets II
https://oj.leetcode.com/problems/subsets-ii/http://blog.csdn.net/linhuanmars/article/details/24613193publicclassSolution{ publicList<List<Integer>>subsetsWithDup(int[]num){ Arrays.sort(num); Set<List<Integer>>results=newHashSet<..
分类:其他   时间:2015-01-05 07:11:04    收藏:0  评论:0  赞:0  阅读:265
xtrabackup实战备份mysql5.6.21
percona:ibbackup:InnoDBonlinephysicalbackupfullincrementalMyISAM:warmbackup,fullpercona:Xtrabackup1、简介xtrabackup是由percona提供的mysql数据备份工具,据官方介绍,这也是世界上唯一一款开源的能够对innodb和xtradb(增强版的innodb)数据库进行热备的工具,特点:(1)..
分类:数据库技术   时间:2015-01-05 07:10:44    收藏:0  评论:0  赞:0  阅读:362
mysql关于用户密码的设置( 修改、重置、找回)
1.登录mysql1.1单实例登录1)mysql刚装完mysql无密码情况下登录2)mysql–uroot刚装完mysql无密码情况下登录3)mysql–uroot–p标准的dba登录3)mysql–uroot–p‘密码’无交互登录。一般不用,容易泄漏密码登录成功后提示:mysql>1.2多实例登录mysql–uroot–S指定mysql.sock?.
分类:数据库技术   时间:2015-01-05 07:10:33    收藏:0  评论:0  赞:0  阅读:287
RHCE 学习笔记(13) RPM 和 YUM
这一节和老师学习了软件包的使用首先看看如何rpm的使用,这个命令可以用来查询,安装,卸载,更新软件包简单的说,后面跟q是查询,i是安装,u是更新,e是卸载,V是验证,我们挨个来看看首先是查询,-qa表示查询所有已经安装的包,如下所示值得一提的是RPM本质是一个别人预先编..
分类:其他   时间:2015-01-05 07:10:24    收藏:0  评论:0  赞:0  阅读:308
在windows上搭建Rsync同步数据
1.搭建目的Rsync是一个很受欢迎的数据同步工具,它主要实现数据从一台服务器同步到另一台上,以下是我搭建Rsync的过程。2.Rsync服务端搭建首先下载cwRsyncServer(百度就有),我在这儿使用的是4.0.5的版本。2.1点击安装至此页面,在这儿我使用默认的路径,然后下一步。2.2这儿..
分类:Windows开发   时间:2015-01-05 07:10:14    收藏:0  评论:0  赞:0  阅读:361
mysql单实例的安装和简单配置(5.1.*版本)
1.创建mysql帐号useradd-M-s/sbin/nologin-u49mysql执行过程:[root@Mysql~]#useradd-M-s/sbin/nologin-u49mysql[root@Mysql~]#cat/etc/passwd|grepmysqlmysql:x:49:500::/home/mysql:/sbin/nologin参数说明:-M不创建mysql家目录-s指定mysql登录的shell环境,nologin表示不登..
分类:数据库技术   时间:2015-01-05 07:10:04    收藏:0  评论:0  赞:0  阅读:300
整合ssh事务问题
org.hibernate.HibernateException:NoHibernateSessionboundtothread,andconfigurationdoesnotallowcreationofnon-transactionalonehere org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)1.如果想让spring帮你管理事务..
分类:其他   时间:2015-01-05 07:09:54    收藏:0  评论:0  赞:0  阅读:267
SQL语句的使用
1.mysql常用语句1)显示数据库showdatabases;2)创建数据库createdatabasedbname;3)删除数据库dropdatabasedbname;4)进入数据库usedatabasedbname;5)查询库中全部表showtables(fromdbname);6)创建表createtablestbname(字段1类型,字段2类型,….,PRIMARYKEY(主键名))7)..
分类:数据库技术   时间:2015-01-05 07:09:34    收藏:0  评论:0  赞:0  阅读:342
WindowFromPoint   ChildWindowFromPoint   ChildWindowFromPointEx
HWNDWindowFromPoint( POINTPoint ); 功能:返回包含点的窗口句柄,Point参数指屏幕坐标。 如果不存在窗口包含这个点,则返回NULL。如果窗口无效或者隐藏,则返回NULL。 备注:WindowFromPoint函数不获取隐藏或禁止的窗口句柄,即使点在该窗口内。应用程序应该使用ChildWindow..
分类:Windows开发   时间:2015-01-05 07:09:24    收藏:0  评论:0  赞:0  阅读:266
1867条   上一页 1 ... 81 82 83 84 85 ... 94 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!