Jquery操作下拉框(DropDownList)想必大家都有所接触吧,下面与大家分享下对DropDownList进行取值赋值的实现代码1. 获取选中项:获取选中项的Value值:$('select#sel option:selected').val();或者$('select#sel').find...
分类:
Web程序 时间:
2015-08-11 11:34:18
阅读次数:
126
August 10, 2015有二种解法, Greedy算法, 和DP算法. 二种算法都通过leetcode online judge. 贪婪算法, 花了一个小时理解代码, 修改后很好理解.Problem statement:Find the contiguous subarray within a...
分类:
其他好文 时间:
2015-08-11 09:44:20
阅读次数:
127
【111-Minimum Depth of Binary Tree(二叉树的最小深度)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the shortest path from t...
分类:
编程语言 时间:
2015-08-11 08:33:30
阅读次数:
128
QestionGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, (the...
分类:
其他好文 时间:
2015-08-11 07:18:19
阅读次数:
124
环境带有mysql的两台redhat虚拟机 [root@localhost etc]# ifconfig -a ##记录下master的ip为192.168.88.145 [root@localhost ~]# find / -name my-medium.cnf ? ? ? ? ? ? ?? ##查找mysql的配置文件 /usr...
分类:
数据库 时间:
2015-08-11 01:46:15
阅读次数:
189
1. 排序,查看按时间倒序排列的最近几条记录db.inventory.find().sort({'time':-1}).limit(10)
分类:
数据库 时间:
2015-08-11 00:10:44
阅读次数:
145
题目:Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing all 1’s and return its area.For example, given the following matrix:1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0Ret...
分类:
其他好文 时间:
2015-08-10 22:07:02
阅读次数:
128
题目:Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *...*pm^km.输入描述:Eac...
分类:
其他好文 时间:
2015-08-10 21:47:15
阅读次数:
170
VS2008不能全文搜索的解决办法
VS2008用着用着就不能用了,一全文搜索就提示
No files were found to look in.
Find was stopped in progress.
网上查的,都是说用ctrl + scroll, 我试过不好用。
后来同事说有系列快捷键,依次试了一下。果然好用了。具体是哪个用的,也不知道,反正到Alt+Break...
分类:
其他好文 时间:
2015-08-10 20:08:03
阅读次数:
287
Problem description
Porto’s book club is buzzing with excitement for the annual book exchange event! Every year, members bring their favorite book and try to find another book they like that is...
分类:
其他好文 时间:
2015-08-10 20:00:12
阅读次数:
124