LeetCode 519 Random Flip Matrix (Med, Java, O(1))
Problem Description
-519. Random Flip Matrix
The "Random Flip Matrix" problem requires implementing a class that can randomly flip cells in an m×n binary matrix from 0 to 1. The class should support two operations:
Operations:
flip(): Randomly selec...
huanganni.hashnode.dev3 min read