'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.
'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.