Grokking the Coding Interview: Patterns for Coding Questions
Vote

0% completed

​

Solution: Problem Challenge 1: Flip and Invert an Image

.....

.....

.....

Like the course? Get enrolled and start learning!
A

Anonymous

· 2 years ago

Tbh it is not hard question but it is just my opinion.

A

Anonymous

· 4 years ago

Time complexity should be O(N^2) is input matrix is guaranteed to be a square or O(M * N) if not.

A

Anonymous

· 4 years ago

The solution given assumes the matrix is square. Update C to be len(matrix[0]) or add the constraint.

Reading Progress

0%


Vote for new content