menu_book Course Curriculum (Data Structures & Algorithms) expand_more
Complexity & Foundations
Arrays & Strings
Linked Lists
Stacks & Queues
Hashing
Trees & Heaps
Graphs
Matrix traversal
Learn Matrix traversal in Data Structures & Algorithms with a focused explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
data-structures-algorithms-020.py
python
grid=[[1,2,3],[4,5,6]]
for r,row in enumerate(grid):
for c,value in enumerate(row): print(r,c,value)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content