2016年9月1日

Candy

摘要: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following re 阅读全文

posted @ 2016-09-01 19:51 Sheryl Wang 阅读(182) 评论(0) 推荐(0) 编辑

Longest Consecutive Sequence

摘要: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The long 阅读全文

posted @ 2016-09-01 15:45 Sheryl Wang 阅读(139) 评论(0) 推荐(0) 编辑

导航