In func partition, we could have just made (j <=e ) instead of (j<=e-1). would have saved one extra swap at end.
Hey @akshatprakash.99 Yup u are right ,u can do that