拓扑排序-字典序

Given some words(written in lexical order) of some unknown language…You have to find lexical ordering of all the alphabets…

思路:这个题目用到了拓扑排序的知识。拓扑排序和深度遍历的代码几乎一样。


    原文作者:拓扑排序
    原文地址: https://blog.csdn.net/jiyanfeng1/article/details/40991295
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞