先上题目:Binary Search Heap ConstructionTime Limit:5 Seconds Memory Limit:32768 KBRead the statement of problem G for the definitions concerning trees. In...
分类:
其他好文 时间:
2014-08-11 23:57:23
阅读次数:
895
Search a 2D MatrixWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row...
分类:
其他好文 时间:
2014-08-11 21:14:42
阅读次数:
179
在学习python的过程中很多时候都需要用到re(正则),因为我也不是开发所以呢只是简单说一下经常需要用到的东西。 在工作中经常用到的主要是三个函数:1、math 2、search 3、sub 4、split 1、re.math(a,b) math和search其实用法差不多,只是找...
分类:
编程语言 时间:
2014-08-11 20:51:02
阅读次数:
240
Linux 常用命令 -- find根据名字,顾名思义就是查找的意思,可以通过多个维度来查找你想要的文件,比如类型,find - search for files in a directory hierarchy常用用法1. 通过名字查找文件find pathname -name filename2...
分类:
系统相关 时间:
2014-08-11 20:40:03
阅读次数:
488
基本理解jQuery.attr是jQuery.attr,jQuery.prop,jQuery.css提供底层支持,jQuery里一个比较有特色的地方就是函数的重载, 比如attr,有如下几种重载$('#box').attr('title')$('#box').attr('title','标题')$(...
分类:
数据库 时间:
2014-08-11 17:38:02
阅读次数:
319
这道题是个细节实现题,只要把valid sudoku满足的三个条件判断一下即可。valid sudoku需满足下列三个条件:1)每一行数字1~9有且只出现一次。2)每一列数字1~9有且只出现一次。3)对于每个3*3的sub-box(用i=3、6,j=3、6两条线划分,总共9个sub-box)数字1~...
分类:
其他好文 时间:
2014-08-10 23:57:10
阅读次数:
431
这里会涉及两个需求,有时候,我们想将获得的url字符串按键值对的形式保存成一个对象,用location.search获得url参数字符串,这里不考虑location.pathname和location.hash。url字符串对象化 1 var urlToObj = function (){ 2 .....
分类:
其他好文 时间:
2014-08-10 18:03:40
阅读次数:
139
这篇文章的主题是动态规划, 主要介绍LeetCode中一维动态规划的题目, 列表如下: Climbing StairsDecode WaysUnique Binary Search TreesMaximum SubarrayBest Time to Buy and Sell Stock在介绍上述具体题目之前, 我们先说说动态规划的通常思路。 动态规划是一种算法思路(注意这里不要和递归混淆, 事实上...
分类:
其他好文 时间:
2014-08-10 13:03:50
阅读次数:
180
Use the General, Text Editor, Options Dialog Box to customize the appearance and functionality of the Text and Code editor. You can set Text Editor op...
分类:
其他好文 时间:
2014-08-10 08:07:49
阅读次数:
177