21 lines564 B

Lesson 2: Arrays and two pointers

Arrays and two pointers comes up in almost every real Python project. We start with the why, then write code together.

Full lesson: https://glibcode.net/courses/algorithms/lessons/2

Files

  • two_pointers.py: pair sum in a sorted list with two pointers

Tip: help(len) in the interpreter shows the documentation of any function.

Run it

python3 two_pointers.py

Exercises

See exercises.md. Ask in the forum once you've tried.