摘要: 例如 abcdbbfg 变成 bbbacdfg,要求时间复杂度为N,空间复杂度为1,写了两个方法都未达到要求 :(View Code static void MoveDupCharToFront(char[] input) { if (input == null|| input.Length <=1) { throw new Exception("input can't be empty or less than 2 length"); } int... 阅读全文
posted @ 2012-11-15 08:14 Ligeance 阅读(186) 评论(0) 推荐(0) 编辑