首页 > 全部
Linux MySQL自己环境搭建的笔记
cd /usr/share/selinuxsetenforce 0tar -xvf MySQL-5.6.12-1.el6.x86_64.rpm-bundle.tarrpm -qa|grep -i mysqlyum -y remove mysql-libs*rpm -e mysql*rpm -ivh ...
分类:数据库技术   时间:2014-02-06 17:02:48    收藏:0  评论:0  赞:0  阅读:517
Validate Binary Search Tree
1 public class Solution { 2 public boolean isValidBST(TreeNode root) { 3 return is(root,Integer.MAX_VALUE,Integer.MIN_VALUE); 4 } 5 public boolean is(...
分类:其他   时间:2014-02-06 17:00:18    收藏:0  评论:0  赞:0  阅读:350
Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand. 1 public class Solution { 2 //all is equal in sorted array 3 public int sea...
分类:其他   时间:2014-02-06 16:59:28    收藏:0  评论:0  赞:0  阅读:407
用pid 取主窗口 hwnd
HWND GetHwndByPid(DWORD dwProcessID) { HWND h = GetTopWindow(0); HWND retHwnd = NULL; while ( h ) { DWORD pid = 0; DWORD dwTheardId = GetWindowThreadP...
分类:其他   时间:2014-02-06 16:58:38    收藏:0  评论:0  赞:0  阅读:312
Sqrt(x)
1 public class Solution { 2 public int sqrt(int x) { 3 if(x==0 ||x==1) return x; 4 long start = 1; 5 long end = x-1; 6 while(startx){11 end = mid-1;12...
分类:其他   时间:2014-02-06 16:57:48    收藏:0  评论:0  赞:0  阅读:419
《锋利的Jquery第二版》读书笔记 第二章
本章节主要Jquery选择器jquery选择器与css选择器十分相似,特别需要注意的是$("#tt")获取的永远是对象,即使没有此元素也不会报错,同理错if($("#tt")){//代码}对if($("#tt").length>0){//代码}或者转换为DOM对象也是对的if($("#tt")[0]...
分类:Web开发   时间:2014-02-06 16:56:08    收藏:0  评论:0  赞:0  阅读:401
Anagrams
1 public class Solution { 2 public ArrayList anagrams(String[] strs) { 3 int len = strs.length; 4 HashMap> hm = new HashMap>(); 5 ArrayList res = new ...
分类:其他   时间:2014-02-06 16:56:58    收藏:0  评论:0  赞:0  阅读:415
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:其他   时间:2014-02-06 16:55:18    收藏:0  评论:0  赞:0  阅读:378
Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 1 public class Solution { 2 public TreeNode sortedAr...
分类:其他   时间:2014-02-06 16:53:38    收藏:0  评论:0  赞:0  阅读:543
2月6日:linux下命令与查看方式
一.man page的时候很多符号进行说明. []:表示可选参数 :表示必选参数 a|b|c:表示多选一 ...:表示可以多个选项连接 另外凡是大写字母拼写的单词都应知道在man page下会有相应的参数来替换的.如果man date的时候有: date [OPTIONS]...[+FORMATS]...
分类:其他   时间:2014-02-06 16:54:28    收藏:0  评论:0  赞:0  阅读:386
Insert Interval
Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially...
分类:其他   时间:2014-02-06 16:51:58    收藏:0  评论:0  赞:0  阅读:484
Permutation Sequence
The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie...
分类:其他   时间:2014-02-06 16:52:48    收藏:0  评论:0  赞:0  阅读:316
Pow(x, n)
1 public class Solution { 2 public double pow(double x, int n) { 3 if(x==0||x==1) return x; 4 if(n<0)return 1/helper(x,-1*n); 5 else return helper(x,n...
分类:其他   时间:2014-02-06 16:51:08    收藏:0  评论:0  赞:0  阅读:416
Set Matrix Zeroes
1 public class Solution { 2 public void setZeroes(int[][] matrix) { 3 boolean row = false; 4 boolean col = false; 5 for(int i=0;i<matrix.length;i++){ ...
分类:其他   时间:2014-02-06 16:50:18    收藏:0  评论:0  赞:0  阅读:326
Binary Tree Level Order Traversal
1 public class Solution { 2 public ArrayList> levelOrder(TreeNode root) { 3 ArrayList> res = new ArrayList>(); 4 LinkedList cur = new LinkedList(); 5 ...
分类:其他   时间:2014-02-06 16:49:28    收藏:0  评论:0  赞:0  阅读:341
Binary Tree Inorder Traversal
1 public class Solution { 2 public ArrayList inorderTraversal(TreeNode root) { 3 ArrayList res = new ArrayList (); 4 Stack stack = new Stack(); 5 Tree...
分类:其他   时间:2014-02-06 16:48:38    收藏:0  评论:0  赞:0  阅读:439
Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他   时间:2014-02-06 16:46:58    收藏:0  评论:0  赞:0  阅读:373
背包模版
关于背包DP的文章很多,谷歌百度搜《背包九讲》即可。本文章只放模版。文章统一v代表体积,w代表价值,f代表dp数组,V代表总体积,W代表总价值,均采用滚动数组。答案一般都为f[V]。01背包:void zop(int v, int w) { for(int i = V; i >= v; --i) f...
分类:其他   时间:2014-02-06 16:47:48    收藏:0  评论:0  赞:0  阅读:371
matlab画图
matlab画图
分类:其他   时间:2014-02-06 16:46:08    收藏:0  评论:0  赞:0  阅读:427
MecAnim
【Animator Component】 Any GameObject that has an avatar will also have anAnimatorcomponent, which is the link between the character and its behavior. 只...
分类:其他   时间:2014-02-06 16:44:28    收藏:0  评论:0  赞:0  阅读:617
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!