Write an algorithm such that if an element in an MxN matrix is 0, its entire row and column are set to 0.
O(n), where n is the number of elements in matrix (in place)
O(n) + O(n) extra memory
O(n), where n is the number of elements in matrix
Run make to build and run C++ files and run Swift files. Or you can run .playground file.