上一页 1 ··· 5 6 7 8 9 10 11 下一页
题目来源https://leetcode.com/problems/jump-game/Given an array of non-negative integers, you are initially positioned at the first index of the array.Each... Read More
posted @ 2015-12-28 21:37 loadofleaf Views(254) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/spiral-matrix-ii/Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.题意分析Inp... Read More
posted @ 2015-12-28 16:33 loadofleaf Views(321) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/spiral-matrix/Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.题意分析I... Read More
posted @ 2015-12-28 16:20 loadofleaf Views(233) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/maximum-subarray/Find the contiguous subarray within an array (containing at least one number) which has the largest... Read More
posted @ 2015-12-28 15:14 loadofleaf Views(283) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of ... Read More
posted @ 2015-12-28 14:45 loadofleaf Views(169) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/n-queens/Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each ... Read More
posted @ 2015-12-28 13:03 loadofleaf Views(240) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/powx-n/Implement pow(x,n).题意分析Input: x,nOutput:pow(x,n)Conditions:满足一定的内存需求,算法复杂度低一些题目思路刚开始以为直接乘就好了,但是爆内存了,仔细看发现其实可以... Read More
posted @ 2015-12-23 21:32 loadofleaf Views(200) Comments(0) Diggs(0) Edit
需求有时候在shell script里面需要一些执行,如果放在程序里面不便于统一管理,并且每一次修改路径都要去script里面改好麻烦,所以统一把路径放在配置文件中方便管理。问题如何读取相对应的key-value是主要问题,主要是用到IFS分隔符,记住使用时最好先备份原来的IFS,使用完记得还原IF... Read More
posted @ 2015-12-17 22:39 loadofleaf Views(1089) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/rotate-image/You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up... Read More
posted @ 2015-12-16 18:28 loadofleaf Views(228) Comments(0) Diggs(0) Edit
题目来源https://leetcode.com/problems/multiply-strings/Given two numbers represented as strings, return multiplication of the numbers as a string.Note: Th... Read More
posted @ 2015-12-13 17:26 loadofleaf Views(296) Comments(0) Diggs(0) Edit
上一页 1 ··· 5 6 7 8 9 10 11 下一页