-
-
Notifications
You must be signed in to change notification settings - Fork 632
Add Sleep Sort in C #4363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Sleep Sort in C #4363
Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
rzuckerm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but this isn't how Sleep Sort works. It involves spinning up threads that sleep for the requested amount of time and put the value into a queue that can be output later. Please see the project requirements
the thread solution causes issue with the checks even after adding edit 1: nvm. looks like it worked fine with threading. not sure what i was doing wrong before |
rzuckerm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing one of the more difficult samples, @2Clutch ! You're well on your way to completing all the C samples.
I Am Adding a New Code Snippet in an Existing Language
Add {PROJECT} in {LANGUAGE}format