pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Implemented SleepSort in Java #477

Closed dhairya-parikh closed 3 years ago

dhairya-parikh commented 3 years ago

Description

Sort an array of given non-negative integers using Sleep Sort Algorithm. In this algorithm, we create different threads for each of the elements in the input array and then each thread sleeps for an amount of time which is proportional to the value of the corresponding array element.

Reference Issue number #476

issue_no must refer to the issue related to this PR, visit here

Type of change

Choosing one or more options from the following as per the nature of your Pull request. NOTE: Check boxes using [x]

Checklist: