Spurs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年8月28日

摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given , The longest consecutive elemen 阅读全文
posted @ 2017-08-28 23:04 英雄与侠义的化身 阅读(148) 评论(0) 推荐(0) 编辑

摘要: 有一个升序排序的数组. For example, Given sorted array , Your function should return length = , with the first five elements of nums being . It doesn't matter wh 阅读全文
posted @ 2017-08-28 21:19 英雄与侠义的化身 阅读(109) 评论(0) 推荐(0) 编辑

摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., might become ). Write a function to determine if 阅读全文
posted @ 2017-08-28 16:51 英雄与侠义的化身 阅读(129) 评论(0) 推荐(0) 编辑