3 ms·There are two off-by-one errors. Should be checking value[length-1].by ectopod 5y agoThere are two off-by-one errors. Should be checking value[length-1].