Skip to content

Conversation

@apurvavats
Copy link
Contributor

@apurvavats apurvavats commented Oct 29, 2025

Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder!
For simplicity, please make sure that your pull request includes one and only one contribution.

Please fill one of the sections below as applicable.
Please also add any other relevant information to the Notes section at the bottom.
You may delete or just ignore any other sections.
For more information please refer to our contributing documentation

I Am Adding a New Code Snippet in an Existing Language

  • I fixed Add Sleep Sort in C++ #3340
  • I did not include any extra folders/libraries
  • I named the pull request using Add {PROJECT} in {LANGUAGE} format

@apurvavats
Copy link
Contributor Author

This C++ implementation of Sleep Sort uses std::thread, so it requires linking with pthread.
The build command should include the -pthread flag: g++ -pthread -o sleep-sort sleep-sort.cpp

@rzuckerm rzuckerm added enhancement Any code that improves the repo hacktoberfest Hacktoberfest related sleep sort See: https://sampleprograms.io/projects/sleep-sort/ labels Oct 29, 2025
@rzuckerm rzuckerm changed the title "Add Sleep Sort in C++ (Fixes #3340)" Add Sleep Sort in C++ (Fixes #3340) Oct 29, 2025
Copy link
Collaborator

@rzuckerm rzuckerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please edit the build command in testinfo.yml and add it to this PR.

@apurvavats apurvavats requested a review from rzuckerm October 29, 2025 18:37
Copy link
Collaborator

@rzuckerm rzuckerm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, @apurvavats ! Thanks for your contribution and for improving our C++ build environment.

@rzuckerm rzuckerm merged commit 77b41e8 into TheRenegadeCoder:main Oct 29, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Any code that improves the repo hacktoberfest Hacktoberfest related sleep sort See: https://sampleprograms.io/projects/sleep-sort/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Sleep Sort in C++

2 participants