3 ms·
Even my experience at google was terrible. 'Not the most efficient solution' was the feedback, even though all that was happening was that their method require
by sage76 5y ago
Even my experience at google was terrible.
'Not the most efficient solution' was the feedback, even though all that was happening was that their method required 1 loop and mine had split those operations into 2 loops, with exactly the same time and space complexity.
Oh, and I had immediately taken their hint to modify my code anyway and the solution was working in both cases.