摘要:
每日一题:二叉树的序列化与反序列化 https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/ class Codec: def serialize(self, root): """Encodes a tree to 阅读全文
摘要:
https://leetcode-cn.com/problems/longest-common-prefix/每日一题 class Solution(object): def longestCommonPrefix(self, strs): n = len(strs) ans = '' j = 0 阅读全文