Topological Sorting - Find Shortest String Character Order - 我的博客 - ITeye技术网站
You are given N subsequences(not necessarily contiguous) of a string. Find the shortest possible string which has distinct lower case letters, with the given subsequences. The solution is guaranteed to exist.
Read full article from Topological Sorting - Find Shortest String Character Order - 我的博客 - ITeye技术网站