摘要: '''Given an array and a value, remove all occurrences of that value in place and return the new length.The... 阅读全文
posted @ 2019-03-01 17:42 jj千寻 阅读(141) 评论(0) 推荐(0) 编辑
摘要: '''Given an integer array, find a subarray where the sum of numbers is zero.Your code should return the in... 阅读全文
posted @ 2019-03-01 17:40 jj千寻 阅读(149) 评论(0) 推荐(0) 编辑
摘要: import hashlib# hash转换print(hash('aa'))print(hash('aa'))print(hash(111))print(hash(str([1, 2, 3, 4])))# md... 阅读全文
posted @ 2019-03-01 13:26 jj千寻 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-01 13:26 jj千寻 阅读(78) 评论(0) 推荐(0) 编辑
摘要: from queue import PriorityQueueclass Job(object): def __init__(self, priority, description): sel... 阅读全文
posted @ 2019-03-01 11:31 jj千寻 阅读(74) 评论(0) 推荐(0) 编辑