Flipping an Image
Mirror each row of a binary matrix and invert every bit. The visual moves each source cell to its mirrored position and toggles it in place.
Mirror each row of a binary matrix and invert every bit. The visual moves each source cell to its mirrored position and toggles it in place.