摘要:
每日一题:二叉树的序列化与反序列化 https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/ class Codec: def serialize(self, root): """Encodes a tree to 阅读全文
posted @ 2020-06-16 22:03
2014>
阅读(97)
评论(0)
推荐(0)
摘要:
https://leetcode-cn.com/problems/longest-common-prefix/每日一题 class Solution(object): def longestCommonPrefix(self, strs): n = len(strs) ans = '' j = 0 阅读全文
posted @ 2020-06-16 00:06
2014>
阅读(94)
评论(0)
推荐(0)
浙公网安备 33010602011771号