摘要:
引入头文件 有些笔试是ACM模式,需要自己处理输入输出,还要自己添加头文件,在这里整理一下 #include <iostream> #include <string> #include <vector>//数组 #include <queue>//队列 #include <stack>//栈 #in 阅读全文
posted @ 2022-05-03 19:34
YTT77
阅读(87)
评论(0)
推荐(1)
摘要:
27. 移除元素 用快慢指针,快指针将慢指针位置的数覆盖 class Solution: def removeElement(self, nums: List[int], val: int) -> int: fast, slow = 0, 0 while fast < len(nums): if n 阅读全文
posted @ 2022-05-03 09:35
YTT77
阅读(50)
评论(0)
推荐(0)

浙公网安备 33010602011771号