4 ms·Same way you solve it in C. Don't use the heap.by cozzyd 4y agoSame way you solve it in C. Don't use the heap.