sleep sort implementation in javascript, this algorithm has a time complexity of O(h no)
npm install sleep-sorting
const sleepSort = require("sleep-sorting");
(async () => console.log(await sleepSort([4, 1, 3, 6])))();
- Job Interview: Impress your Interviewer by implementing this algorithm
Please don't use this in production or anything that needs to actually work. It's a fun project, and that’s it.