摘要:
给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。(第一个我理解错了,然后看了以前代码,第二三个我跟根据官网改编的,最后的几个你猜啊) class Solution(object): def maxProfit1(self, prices): """ :type prices: Lis 阅读全文
posted @ 2021-01-15 15:55
楠海
阅读(67)
评论(0)
推荐(0)
摘要:
反转一个单链表。(第一个我写的,其他的你猜) class Solution(object): def reverseList1(self, head): """ :type head: ListNode :rtype: ListNode """ new_head = ListNode(-1) tem 阅读全文
posted @ 2021-01-15 14:42
楠海
阅读(66)
评论(0)
推荐(0)

浙公网安备 33010602011771号