Search
⌘K

Leetcode 832. Flipping an Image

Given an n×n binary matrix, horizontally reverse each row and then invert every bit (0↔1), returning the transformed matrix. This can be done in-place by combining the row reversal and bit flip in a single pass (e.g., with a two-pointer swap and invert).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.