摘要:
class Solution: def findKthLargest(self, nums: List[int], k: int) -> int: """堆排序思想""" def heapify(array, start, end): while True: max_pos = start #初始化 阅读全文
摘要:
栈 class Stack: def __init__(self, limit: int 10): self.stack = [] self.limit = limit def __bool__(self): return bool (self.stack) def __str__(self): r 阅读全文