摘要: No.164 Maximum GapGiven an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear ti... 阅读全文
posted @ 2015-06-08 17:10 人生不酱油 阅读(98) 评论(0) 推荐(0) 编辑
摘要: No.75 Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in ... 阅读全文
posted @ 2015-06-08 16:32 人生不酱油 阅读(101) 评论(0) 推荐(0) 编辑