3 ms·
I was given this exact problem at a Google interview. In fact it was virtually the only high level, real code programming exercise I was asked to do in many hou
by jzwinck 11y ago
I was given this exact problem at a Google interview. In fact it was virtually the only high level, real code programming exercise I was asked to do in many hours of interviews.
- ilurkedhere 11y agoI too got this problem, though not at google. White-boarded it and came up with the n^2 solution.