摘要: 查找某给定值在排序二叉树中是否存在. 阅读全文
posted @ 2016-03-21 13:31 brayden 阅读(647) 评论(0) 推荐(0) 编辑
摘要: /* * Zip a string. For example, "aaabcc" => "3ab2c". * You should directly update the input string. */ void strzip(char *str) { int count; char *p, *idx, c; for (count = 0, p = idx = str... 阅读全文
posted @ 2016-03-21 13:18 brayden 阅读(451) 评论(0) 推荐(0) 编辑