mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 20:52:00 +08:00
contents(algo): fix typo in matrix cheat sheet (#273)
This commit is contained in:
@ -40,7 +40,7 @@ For questions involving traversal or dynamic programming, you almost always want
|
|||||||
This can be done easily in Python in one line.
|
This can be done easily in Python in one line.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
# Assumes that the matrix is is non-empty
|
# Assumes that the matrix is non-empty
|
||||||
zero_matrix = [[0 for _ in range(len(matrix[0]))] for _ in range(len(matrix))]
|
zero_matrix = [[0 for _ in range(len(matrix[0]))] for _ in range(len(matrix))]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user