1 min readSep 7, 2020
Hello Prashant Pachouri It doesn’t make sense to use heap if we work with only 3 numbers. Firstly I wrote the code with heap but found that takes even more lines than without heap, it looks not so clear at it will be a bit slower because working with heap is slower than assigning a value to a variable.