File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ # LeetCode Python Solutions
2+ This repo contains my Python solutions to LeetCode problems. I try to give ample
3+ documentation to maximize the pedagogy of my solutions, including time and space
4+ complexity and how I arrived at them.
5+
6+ For expediency, when problems involve an array, I am OK with using a Python list
7+ instead and using the following operations:
8+ - ` for i in range(n) ` to iterate over the list
9+ - ` for i in range(bigger, smaller, -1) ` to iterate backwards
10+ - ` nums[-1] ` to get the last element
11+
12+ While these operations are indeed Pythonic, they don't provide any extra
13+ functionality as compared to a low-level array. No short-cuts are intended.
14+
15+ I very much welcome corrections. Thanks.
You can’t perform that action at this time.
0 commit comments