摘要: Python的四种常见数据结构比较Python list tuple set dict Contents本质上的区别语法上的比较 本质上的区别最重要的区别在于是否可变,是否有序这两个维度,可以分成4个象限,如下图比较 语法上的比较listtupledictset创建a=[element1,element2,...]a=(element1,element2,...)a={key1(不可变):v... 阅读全文
posted @ 2018-10-30 14:39 Howfar's 阅读(1617) 评论(0) 推荐(0)
摘要: LeetCode Notes_#53 Maximum SubarrayLeetCode Contents题目思路和解答思路解答需要注意的点 题目Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and retur... 阅读全文
posted @ 2018-10-30 14:33 Howfar's 阅读(118) 评论(0) 推荐(0)