3 ms·His solution is fine -- the asymptotic complexity in this case doesn't matter since N is bounded and small.by anonytrary 8y agoHis solution is fine -- the asymptotic complexity in this case doesn't matter since N is bounded and small.