Ola Coding Interview Questions
100 Ola coding interview problems with full optimal solutions — 32 easy, 60 medium, 8 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Ola interviewer values, and a FAQ section.
Showing 1 problem of 100
- #57mediumsometimes
57. Set Matrix Zeroes
Set Matrix Zeroes hands you an m x n grid and one rule: wherever a zero sits, its whole row and column become zeros — and you must do it in place. Ola candidates report it as a space-optimization ladder: interviewers accept the O(m+n) tracking-set answer, then immediately ask for O(1) extra space, which forces the first-row-and-column marker trick and exposes whether you can mutate state you are still reading from without corrupting it.