首页 > 2015年01月14日 > 全部分享
LeetCode--Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree {3,9,20,#,#,15,7}, ...
分类:其他   时间:2015-01-14 15:34:56    收藏:0  评论:0  赞:0  阅读:234
Spring常用注解
常用注解有以下几种: @Autowired @Qualifier("") @Repository @Service @Component @Controller @WebServelet @Entity @Table(name="") @Id @Column(length=) @GeneratedValue(strategy=GenerationType.AUTO) @S...
分类:编程语言   时间:2015-01-14 15:34:46    收藏:0  评论:0  赞:0  阅读:320
正则表达式
?? 1.什么是正则表达式   ①文件路径通配符     "?"匹配单个字符,"*"匹配零个或多个字符。   ②正则表达式     符合某种规则的表达式   ③元字符与子匹配     元字符     子匹配       括号所括起来的表达式部分为一个子匹配(子表达式) 2.RegExp对象   ①创建     1)显示构造器:var regExp = new RegExp(...
分类:其他   时间:2015-01-14 15:34:36    收藏:0  评论:0  赞:0  阅读:243
腾讯微博小清新客户端
腾讯微博小清新客户端...
分类:其他   时间:2015-01-14 15:34:26    收藏:0  评论:0  赞:0  阅读:286
LeetCode--Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * ...
分类:其他   时间:2015-01-14 15:34:17    收藏:0  评论:0  赞:0  阅读:225
【POJ3415】Common Substrings 后缀自动机
题意: 给两个串,问有多少长度大于等于K的公共子串(位置不同也算一对) 题解: 后缀自动机DP 对第一个串建立后缀自动机,然后做一些预处理, 然后拿第二个串在后缀自动机上跑,到每个节点加一次贡献。 但是这样需要每个点往parent树上跑一遍,会TLE,所以可以加个lazy。 然后代码中有两次运用到拓扑序来从子向父推DP值。 呃,说得乱糟糟的。 Orz No_stop 不...
分类:其他   时间:2015-01-14 15:34:08    收藏:0  评论:0  赞:0  阅读:666
在mac os 中安装 autoconf and automake
你需要安装很多东西,请按照以下顺序安装: 安装的版本包也不能错: curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz tar -xzvf m4-1.4.13.tar.gz cd m4-1.4.13 ./configure --prefix=/usr/local make sudo make install cd ....
分类:系统服务   时间:2015-01-14 15:33:56    收藏:0  评论:0  赞:0  阅读:1223
jQuery简介
?? 1.jQuery简介:     write less,do more     jQuery是一套跨浏览器的JavaScript库,简化HTML与JavaScript之间的操作。由John Resig在2006年1月的BarCamp NYC上发布第一个版本。 目前是由 Dave Methvin 领导的开发团队进行开发。全球前10000个访问最高的网站中,有59%使用了jQuery,...
分类:Web开发   时间:2015-01-14 15:33:46    收藏:0  评论:0  赞:0  阅读:364
hdu 3706 单调队列水题
单调队列水题...
分类:其他   时间:2015-01-14 15:33:35    收藏:0  评论:0  赞:0  阅读:165
sed系列:行或者模式匹配删除特定行
“p” command prints the buffer (remember to use -n option with “p”)  “d” command is just opposite, its for deletion. ‘d’ will delete the pattern space buffer and immediately starts the next cycle.  ...
分类:其他   时间:2015-01-14 15:33:26    收藏:0  评论:0  赞:0  阅读:347
java采用3种方式判断用户输入的字符串是否为回文
一、描述 回文的定义:"回文数" 就是正读倒读都一样的整数。如奇数个数字:98789, 这个数字正读是98789,倒读也是98789;偶数个数字3223也是回文数。 我们今天将回文数扩展为字母和数字组合回文,如adgu6776ugda也是回文,我们采用三种方式判断这种类型的字符串是否为回文: 1.调用StringBuffer类对象的reverse()方法,将字符串翻转后与之前的字符串比较,如...
分类:编程语言   时间:2015-01-14 15:33:16    收藏:0  评论:0  赞:0  阅读:408
sed系列:多命令执行
Syntax:  #sed -e 'command' -e 'command' filename  Note: -e option is optional for sed with single command. sed will execute the each set of command while processing input from the pattern buffer.  ...
分类:其他   时间:2015-01-14 15:33:06    收藏:0  评论:0  赞:0  阅读:282
LeetCode--Convert Sorted List to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *nex...
分类:其他   时间:2015-01-14 15:32:55    收藏:0  评论:0  赞:0  阅读:325
UITabBarController,UITabBarItem设置
self.tabBarController = [[UITabBarController alloc] init];          HomeViewController *homeVC = [[HomeViewController alloc] init];     UINavigationController *nav1 = [[UINavigationController al...
分类:其他   时间:2015-01-14 15:32:36    收藏:0  评论:0  赞:0  阅读:263
LeetCode--Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:其他   时间:2015-01-14 15:32:25    收藏:0  评论:0  赞:0  阅读:256
【Android学习笔记】DatePickerDialog和TimePickerDialog日期选择器和时间选择器
(1)布局文件 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height...
分类:移动平台   时间:2015-01-14 15:32:16    收藏:0  评论:0  赞:0  阅读:291
如何获得外部看到的外网IP
curl ifconfig.me 原理是这样的:...
分类:其他   时间:2015-01-14 15:32:06    收藏:0  评论:0  赞:0  阅读:305
【新年计划】2015,给程序员的9大计划,没有过于宏伟,不再显得遥不可及
制定新年计划是我们最喜欢做的事情之一,我们总是会在年底的时候对新的一年有一个很好的计划,但后来就把它们都抛到脑后了,直到最后全部忘记。也许,我们的计划总是过于宏伟,很多事情都是做不到的,甚至显得遥不可及。但是,今年一定会有所不同,这篇文章就是专为程序员准备的九大新年计划,供各位程序员参考。 1. 学习一门新的不同风格的编程语言 这是很需要的一件事,因为如果你只了解一种语言,它就会局限你解决问题的能力和你的职业发展。所以在新的一年,你应该花些时间学习一门新的语言,体验不同的编程风格,并学以致用。...
分类:其他   时间:2015-01-14 15:31:56    收藏:0  评论:0  赞:0  阅读:281
PHP fgets按行读取字符串和explode分割字符串为数组
file.txt  类型|所在目录|文件|大小|创建时间  File|C:\Program Files\Java\jre7\lib\zi\America\Indiana|Vevay|724|2014-10-13 09:36 File|C:\Program Files\Java\jre7\lib\zi\America\Indiana|Vincennes|884|2014-10-13 0...
分类:编程语言   时间:2015-01-14 15:31:46    收藏:0  评论:0  赞:0  阅读:509
UCOSII查询消息队列的状态
在调用OSQQuery时,需要这样定义:OS_Q_DATA qdata;OSQQuery(q1, &qdata);不能这样定义:OS_Q_DATA *qdata;OSQQuery(q1, qdata);会触发HardFault_Handler()中断,原因就是没有申请空间。
分类:其他   时间:2015-01-14 15:30:45    收藏:0  评论:0  赞:0  阅读:346
1345条   上一页 1 ... 31 32 33 34 35 ... 68 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!