2014年12月18日

Find Peak Element

摘要: Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and ... 阅读全文

posted @ 2014-12-18 19:46 luckygxf 阅读(163) 评论(0) 推荐(0) 编辑

Surrounded Regions

摘要: Surrounded RegionsGiven a 2D board containing'X'and'O', capture all regions surrounded by'X'.A region is captured by flipping all'O's into'X's in that... 阅读全文

posted @ 2014-12-18 00:03 luckygxf 阅读(153) 评论(0) 推荐(0) 编辑

导航