Arrays ,Sliding Window ,Prefix sum and n Pointers Problems
Set Matrix zeros
IDEA:
To solve this problem, use the first row and column of the matrix to store markers indicating if a row or column should be set to 0's. this way we don't have to use any extra space
Iterate through the matrix, and if an element...
paraskaushik.hashnode.dev8 min read