摘要:
给定一个二叉树,检查它是否是镜像对称的。 https://leetcode-cn.com/problems/symmetric-tree/ # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): 阅读全文
摘要:
最小覆盖子集 给你一个字符串 S、一个字符串 T 。请你设计一种算法,可以在 O(n) 的时间复杂度内,从字符串 S 里面找出:包含 T 所有字符的最小子串。 示例: 输入:S = "ADOBECODEBANC", T = "ABC" 输出:"BANC" 提示: 如果 S 中不存这样的子串,则返回空 阅读全文