Check if the given relations are transitive and if not, add new pairs to make it transitive

前端 未结 0 1096
Happy的楠姐
Happy的楠姐 2021-01-01 20:52

I\'m trying to check if the given relations are transitive and if not, add new pairs of relations to make it transitive. Example input:

aa ab ad be

Function sh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题