摘要:
https://leetcode-cn.com/problems/ba-shu-zi-fan-yi-cheng-zi-fu-chuan-lcof/ 每日一题:递归 class Solution: def translateNum(self, num): if 0 <= num <= 9: retur 阅读全文
摘要:
leetcode 每日一题 https://leetcode-cn.com/problems/satisfiability-of-equality-equations/ 思路:并查集 先把所有==合并,再将所有 !=查找。如果是同一个父亲就return false 。 class Solution: 阅读全文