摘要: 2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of 阅读全文
posted @ 2018-01-03 19:39 二十四桥明月夜33 阅读(498) 评论(0) 推荐(0) 编辑
摘要: 1. Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wo 阅读全文
posted @ 2018-01-03 19:32 二十四桥明月夜33 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 迭代器 迭代器的引入 假如我现在有一个列表l=['a','b','c','d','e'],我想取列表中的内容,那么有几种方式? 1、通过索引取值 ,如了l[0],l[1] 2、通过for循环取值 但你有没有想过,我们为什么可以使用for循环来取值? for循环内部是怎么工作的呢? 迭代器 对于一个列 阅读全文
posted @ 2018-01-03 19:06 二十四桥明月夜33 阅读(224) 评论(2) 推荐(2) 编辑