Iterator python

Jimmy (xiaoke) Shen
1 min readJan 24, 2020

--

Iterators are widely used in python. It seems modern C++ is also using iterators to improve efficiency.

A good introduction about iterator can be found here.

A good application of using iterator can be found from the post below.

https://leetcode.com/problems/number-of-matching-subsequences/discuss/117634/Efficient-and-simple-go-through-words-in-parallel-with-explanation

--

--

No responses yet