Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c94d1d8

Browse files
author
Khanh Do
committed
Update readme
1 parent be16094 commit c94d1d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ complexity and how I arrive at them.
55

66
For expediency, when problems involve an array, I am OK with using a Python list
77
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
8+
- `for i in range(n):` to iterate over the list
9+
- `for i in range(bigger, smaller, -1):` to iterate backwards
10+
- `for i, v in enumerate(nums):` to iterate over index and value simultaneously
1011
- `nums[-1]` to get the last element
1112

1213
While these operations are indeed Pythonic, they don't provide any extra

0 commit comments

Comments
 (0)