摘要:
1.查看端口使用情况 netstat -apn | grep 8080 关闭端口: kill -9 进程id2.关闭防火墙及selinux (防火墙)重启后永久生效:chkconfig iptables on/off 即时生效:service iptables start/stop (se... 阅读全文
摘要:
【题目】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... 阅读全文
摘要:
【题目】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... 阅读全文
摘要:
【问题】Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each num... 阅读全文
摘要:
【问题】Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated... 阅读全文
摘要:
【题目】Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a functio... 阅读全文
摘要:
【题目】Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3, You should return the following ... 阅读全文
摘要:
【题目】Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, ... 阅读全文