摘要: Questions: "Two Sum" My Answer: / Function: Copynums Explanation: The function is used to judging whether a number is in nums or not. / int copynums(i 阅读全文
posted @ 2017-01-28 18:40 Wasdns 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 参考: "dict and set" Note: A.dict Hint:注意最后三点。 1.Python内置字典dict,全称directory,在别的语言如C++中称为map,使用键值 value存储,查找速度极快。 2.给定一个键值key,dict在内部根据键值计算出存储的内存地址,从而迅速的 阅读全文
posted @ 2017-01-28 13:19 Wasdns 阅读(222) 评论(0) 推荐(0) 编辑