Matrix with 0s 1s..rows in sorted order..get row with max 0s - java

Start from right top corner and then move towards left until 1 is encountered. Then traverse down until 0 is encountered and then again traverse left until 1 is encountered

Comments

Popular posts from this blog

Find pair whose sum is k - java

Class, Reference and Object