摘要: A 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 return its index.... 阅读全文
posted @ 2015-01-16 20:58 匡子语 阅读(281) 评论(0) 推荐(0)
摘要: Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num... 阅读全文
posted @ 2015-01-16 17:36 匡子语 阅读(272) 评论(0) 推荐(0)
摘要: Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ... 阅读全文
posted @ 2015-01-16 14:32 匡子语 阅读(167) 评论(0) 推荐(0)
摘要: 想实现书上倒排索引的例子,但是我不会java想用C++写,如果用hadoop streaming 那么输入必须是标准输入的形式, 那么我怎么获得每个文件的文件名呢?查了一下,还有一种方法叫做hadoop pipes 也是可以用来支持C++的,但是怎么用我还不懂 阅读全文
posted @ 2015-01-16 13:48 匡子语 阅读(229) 评论(0) 推荐(0)