摘要: Given a binary tree, print it vertically. The following example illustrates vertical order traversal. 1 / \ 2 3 / \ / \ 4 5 6 7 \ \ 8 9The output of p... 阅读全文
posted @ 2014-11-08 18:43 linyx 阅读(425) 评论(0) 推荐(0) 编辑
摘要: Given a string and a positive integer d. Some characters may be repeated in the given string. Rearrange characters of the given string such that the s... 阅读全文
posted @ 2014-11-08 14:54 linyx 阅读(264) 评论(0) 推荐(0) 编辑
摘要: A suffix array is a sorted array of all suffixes of a given string. The definition is similar to Suffix Tree which is compressed trie of all suffixes ... 阅读全文
posted @ 2014-11-08 13:04 linyx 阅读(416) 评论(0) 推荐(0) 编辑