摘要:
题目描述: 方法一:pythonO(N)O(1) class Solution: def maxDepthAfterSplit(self, seq: str) -> List[int]: d = 0 ans = [] for s in seq: if s == "(": d += 1 ans.app 阅读全文
摘要:
恢复内容开始 题目描述:给定一个数组,返回排序后的数组。 python 归并排序: class Solution: def sortArray(self, nums: List[int]) -> List[int]: def merge_sort(nums): if len(nums) <= 1: 阅读全文