Skip to content

Conversation

@surohitasnigdha1
Copy link

This PR adds the Dutch National Flag algorithm in C++ under the sorting folder.
The algorithm sorts an array containing three distinct elements (e.g., 0, 1, 2)
in a single pass with O(n) time complexity and O(1) extra space.

It includes:

  • Well-commented C++ code
  • Example usage in the main function
  • Explanation of the approach along with a dry run.

This contribution is beginner-friendly and follows the repository's coding guidelines.

@github-actions
Copy link
Contributor

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Author has not responded to the comments for over 2 weeks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants