首页 > 2015年05月09日 > 全部分享
Leetcode 208: Implement Trie (Prefix Tree)
Implement Trie (Prefix Tree) Total Accepted: 601 Total Submissions: 2396 Implement a trie with insert, search, and startsWith methods. Note: You may assume that all inputs are consist of...
分类:其他   时间:2015-05-09 07:42:18    收藏:0  评论:0  赞:0  阅读:241
猫猫学IOS(四十二)UI之核心动画CAAnimationGroup以及其他
猫猫分享,必须精品 原创文章,欢迎转载。转载请注明:翟乃玉的博客 地址:http://blog.csdn.net/u013357243?viewmode=contents 效果: 代码: 很简单,不多说,就是把一堆动画放一起,看代码。 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {...
分类:移动平台   时间:2015-05-09 07:42:08    收藏:0  评论:0  赞:0  阅读:245
PHP CURL实现远程下载文件到本地
';print_r($result);function httpcopy($url,$file='',$timeout=60){ $file=empty($file)?pathinfo($url,PATHINFO_BASENAME):$file; $dir=pathinfo($file,...
分类:Web开发   时间:2015-05-09 07:41:37    收藏:0  评论:0  赞:0  阅读:265
PIE currently adds full or partial support to IE 6 through 8 for the following CSS3 features
PIE stands for Progressive Internet Explorer. It is an IE attached behavior which, when applied to an element, allows IE to recognize and display a nu...
分类:Windows开发   时间:2015-05-09 07:41:28    收藏:0  评论:0  赞:0  阅读:279
php获取本周和上周的开始日期和结束日期
';echo '本周结束日期:',$now_end,'';echo '上周开始日期:',$last_start,'';echo '上周结束日期:',$last_end,''; 注意:由于国外的星期都是从周日开始,中国习惯从周一开始,所以直接使用strtotime("last monday") 就会....
分类:Web开发   时间:2015-05-09 07:41:18    收藏:0  评论:0  赞:0  阅读:268
【leetcode】Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他   时间:2015-05-09 07:41:08    收藏:0  评论:0  赞:0  阅读:164
Majority Number III
Given an array of integers and a number k, the majority number is the number that occursmore than 1/kof the size of the array.Find it.ExampleGiven[3,1...
分类:其他   时间:2015-05-09 07:40:58    收藏:0  评论:0  赞:0  阅读:137
[hdu5217]线段树
题意:给定一个只含'(',')'的括号序列,有m个操作,改变某个位置的括号或者询问区间[L,R]内的括号进行配对后剩下的第K个括号的位置(配对的括号从原序列中删掉)。思路:首先对于一个括号序列,进行配对后剩下的括号序列必定是")))...)((...(("这种形式的,令(x,y)表示当前区间的剩下的...
分类:其他   时间:2015-05-09 07:40:52    收藏:0  评论:0  赞:0  阅读:170
Apache PHP服务器时间时区修改及时间比较
做一个project需要用PHP比较当前时间,发现php显示的当前时间与实际时间有较大的差异,于是查了资料进行修改—— 在php.ini配置文件里修改date.timezone的值就能成功设置php服务器的时区 其他参考值: (Asia/Chon...
分类:Web开发   时间:2015-05-09 06:39:58    收藏:0  评论:0  赞:0  阅读:306
容易忘记的命令之route
容易忘记的命令之route route命令 route-show/ manipulatetheIProutingtable显示或修改路由表 显示路由表 route-n 这样的话命令执行的快一点,因为加上-n选项后,直接使用ip或者端口号,而不使用协议或主机名,少了一个解析的过程 liuliancao@liuliancao-K45VD:~$route-..
分类:其他   时间:2015-05-09 06:39:28    收藏:0  评论:0  赞:0  阅读:231
oracle11g修改字符集的问题
oracle11g数据库修改字符集NLS_CHARACTERSET我安装数据库的时候设置为ZHS16GBK,而开发需要的UTF8据开发反应改DB的原因是:因为DB不支持中文,向数据库表中插入一条数据的时候,中文就都变了类似于“?(是反问号)”的乱码,为了能顺利插入成功,故做了此次修改;查询字符集参..
分类:数据库技术   时间:2015-05-09 06:39:19    收藏:0  评论:0  赞:0  阅读:738
在eclipse中以phpeclipse插件搭建php开发环境
phpeclipse是eclipse的一个插件,提供了包括php语法分析、运行、调试等功能的集成开发环境。它基于eclipse的插件机制,即插即用,配置和使用都非常方便。如果平时需要同时进行Java和php的Web开发,phpeclipse是个不错的选择。下面将详细介绍phpeclipse的安装及相关配置第一阶段..
分类:Web开发   时间:2015-05-09 06:39:09    收藏:0  评论:0  赞:0  阅读:401
javascript oop编程 — 实现继承的三种形式
javascriptoop编程—实现继承的三种形式[1](1)模拟类的方式,我们都知道js是原型继承机制,不存在class和instance分离的这种方式假设,我们有两个类functionAnimal(){ this.name=“animal”; this.eat=function(){ consle.log(“eating"); }}functionCat(){ this.say=functi..
分类:编程语言   时间:2015-05-09 06:38:58    收藏:0  评论:0  赞:0  阅读:312
在eclipse中进行php开发中文乱码问题
一将eclipse中的编码都设为UTF-8,一共有3个地方需要设置1,Window-->Preferences-->General-->ContentTypes,将这里面的每一项的默认编码都设为“UTF-8”,特别是Text中的PHPSourceFile,在“Defaultencoding”的右边填写2,Window-->Preferences-->General--&..
分类:Web开发   时间:2015-05-09 06:38:48    收藏:0  评论:0  赞:0  阅读:285
Java之Mysql数据库DML语句执行
packagepy.db.com; importjava.sql.Connection; importjava.sql.DriverManager; importjava.sql.SQLException; importjava.sql.Statement; importcom.mysql.jdbc.PreparedStatement; publicclassDB_update{ publicstaticvoidmain(String[]args){ //TestUpdate(); Te..
分类:数据库技术   时间:2015-05-09 06:38:28    收藏:0  评论:0  赞:0  阅读:293
php基本配置
找到php配置文件,查看配置文件路径命令:/usr/local/php/bin/php-i|head1.配置disable_functiondisable_functions=eval,assert,popen,passthru,escapeshellarg,escapeshellcmd,passthru,exec,system,chroot,scandir,chgrp,chown,escapeshellcmd,escapeshellarg,shell_exec,pro..
分类:Web开发   时间:2015-05-09 06:37:48    收藏:0  评论:0  赞:0  阅读:265
思科路由器基础(一)
一、路由器基本命令操作1、操作模式切换1)用户模式Router>#通常可以查看统计信息Router>logout#退出用户模式2)特权模式Router>en或者Router>enable#进入特权模式Router#Router#disable#退出特权模式3)全局配置模式Router#configt或#进入全局配置模式Router#conf..
分类:其他   时间:2015-05-09 06:37:38    收藏:0  评论:0  赞:0  阅读:228
【沟通的艺术】 国王的演讲
作者:范军(FrankFan)新浪微博:@frankfan7微信:GetToCloud国王的演讲(King’sSpeech)这部电影讲述了一个从小患口吃的国王,历经锤炼终于战胜自己的真实故事。主角演员的演技非常细腻,国王和语言教练的交手戏非常吸引人,国王起初仍保持高高在上的姿态,可教练却以细腻感..
分类:其他   时间:2015-05-09 06:37:18    收藏:0  评论:0  赞:0  阅读:293
java 数据库 常规select操作
packagepy.db.com; importjava.awt.List; importjava.sql.Connection; importjava.sql.DriverManager; importjava.sql.PreparedStatement; importjava.sql.ResultSet; importjava.sql.ResultSetMetaData; importjava.sql.SQLException; importjava.util.ArrayList; publiccla..
分类:数据库技术   时间:2015-05-09 06:37:00    收藏:0  评论:0  赞:0  阅读:198
Nginx 反向代理、负载均衡与动静分离
1、环境:前端Nginx服务器:主机名:node5.a.comIP:192.168.10.205编译安装nginx1.6.3后端tomcat:Server1--ip:192.168.10.209主机名:node9.a.comServer2--ip:192.168.10.210主机名:node10.a.com2、Ngginx配置:usernginx;worker_processes1;events{ useepoll;worker_conne..
分类:其他   时间:2015-05-09 06:36:48    收藏:0  评论:0  赞:0  阅读:286
1446条   上一页 1 ... 63 64 65 66 67 ... 73 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!