摘要: 1.查看端口使用情况 netstat -apn | grep 8080 关闭端口: kill -9 进程id2.关闭防火墙及selinux (防火墙)重启后永久生效:chkconfig iptables on/off 即时生效:service iptables start/stop (se... 阅读全文
posted @ 2015-04-21 18:09 hwu_harry 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 【题目】Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma... 阅读全文
posted @ 2015-04-21 18:03 hwu_harry 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 【题目】Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma... 阅读全文
posted @ 2015-04-21 17:33 hwu_harry 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 【问题】Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each num... 阅读全文
posted @ 2015-04-21 16:59 hwu_harry 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 【问题】Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated... 阅读全文
posted @ 2015-04-21 16:17 hwu_harry 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 【题目】Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a functio... 阅读全文
posted @ 2015-04-21 15:04 hwu_harry 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 【题目】Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3, You should return the following ... 阅读全文
posted @ 2015-04-21 14:30 hwu_harry 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 【题目】Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, ... 阅读全文
posted @ 2015-04-21 14:16 hwu_harry 阅读(110) 评论(0) 推荐(0) 编辑