摘要:
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes 阅读全文
posted @ 2016-07-14 21:58
北叶青藤
阅读(149)
评论(0)
推荐(0)
摘要:
Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers [start, end]. For each 阅读全文
posted @ 2016-07-14 21:35
北叶青藤
阅读(233)
评论(0)
推荐(0)
摘要:
Give you an integer array (index from 0 to n-1, where n is the size of this array, value from 0 to 10000) . For each element Ai in the array, count th 阅读全文
posted @ 2016-07-14 21:16
北叶青藤
阅读(363)
评论(0)
推荐(0)
摘要:
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. 阅读全文
posted @ 2016-07-14 09:02
北叶青藤
阅读(242)
评论(0)
推荐(0)
摘要:
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp 阅读全文
posted @ 2016-07-14 08:50
北叶青藤
阅读(160)
评论(0)
推荐(0)
摘要:
Count how many 1 in binary representation of a 32-bit integer. Count how many 1 in binary representation of a 32-bit integer. Count how many 1 in bina 阅读全文
posted @ 2016-07-14 08:30
北叶青藤
阅读(165)
评论(0)
推荐(0)
摘要:
Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers [start, end]. For each 阅读全文
posted @ 2016-07-14 04:26
北叶青藤
阅读(252)
评论(0)
推荐(0)
摘要:
Insert Intervals Given a non-overlapping interval list which is sorted by start point. Insert a new interval into it, make sure the list is still in o 阅读全文
posted @ 2016-07-14 03:57
北叶青藤
阅读(267)
评论(0)
推荐(0)
摘要:
Find the kth smallest number in at row and column sorted matrix. Example Given k = 4 and a matrix: [ [1 ,5 ,7], [3 ,7 ,8], [4 ,8 ,9], ] return 5. 分析: 阅读全文
posted @ 2016-07-14 02:29
北叶青藤
阅读(309)
评论(0)
推荐(0)

浙公网安备 33010602011771号