Given some words(written in lexical order) of some unknown language…You have to find lexical ordering of all the alphabets…
思路:这个题目用到了拓扑排序的知识。拓扑排序和深度遍历的代码几乎一样。
Given some words(written in lexical order) of some unknown language…You have to find lexical ordering of all the alphabets…
思路:这个题目用到了拓扑排序的知识。拓扑排序和深度遍历的代码几乎一样。