_Ritchie

2015年12月9日

Two Sum & Add Two Numbers

摘要: Two Sum题目:https://leetcode.com/problems/two-sum/class Solution(object): def twoSum(self, nums, target): map = {} for index... 阅读全文

posted @ 2015-12-09 16:40 _Ritchie 阅读(112) 评论(0) 推荐(0) 编辑

Python模块——bisect

摘要: bisect是python内置的模块,主要用于对有序列进行操作。具体用法如下:模块导入:import bisect内容查看:dir(bisect) 这个模块包含了: 五个变量:builtins, doc, file, name, package 六个方法:bisect, ... 阅读全文

posted @ 2015-12-09 14:15 _Ritchie 阅读(496) 评论(0) 推荐(0) 编辑

导航