输入一些字符串,用链表排序输出
[Discuz!]&Menu=yes" target="_blank">" border="0">Please pick up every letter from a text which is only contained letters (ASCII of all letters are from 97 to 123, and the letter is exclusive), Represent these letters as singly linked lists and output them after being sorted with the order of letter.For example:
Input:
linked
lists
are
drawn
0 (0 indicate the end of input, 0 is not in text)
Output:
are drawn linked lists