摘要: Remove ElementGiven an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. ... 阅读全文
posted @ 2015-09-13 23:40 Sean_le 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Search a 2D Matrix IIWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each ... 阅读全文
posted @ 2015-09-13 20:45 Sean_le 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Search a 2D MatrixWrite an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row... 阅读全文
posted @ 2015-09-13 20:28 Sean_le 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr... 阅读全文
posted @ 2015-09-13 17:01 Sean_le 阅读(157) 评论(0) 推荐(0) 编辑