2013年9月26日

The longest plateau

摘要: Problem:Given an array, try to develop an efficient algorithm which can compute the length ofthe longest plateau. A plateau is a consecutive segment of an array with equal contents. For example, if x[] = {1, 2, 3, 4, 4, 4, 5, 5, 6}, then we have six plateaus which are 1, 2, 3, 4-4-4, 5-5 and 6. And 阅读全文

posted @ 2013-09-26 15:52 残月下章台 阅读(302) 评论(0) 推荐(0) 编辑

导航