[PR #941] feat: add dutch national flag 3 way sort #1476

Open
opened 2026-01-29 15:21:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/941
Author: @Storm9n
Created: 2/22/2022
Status: 🔄 Open

Base: masterHead: master


📝 Commits (10+)

  • 53d3fc1 feat: add dutch national flag sort
  • b8ff22e test: add test for dnf_sort algorithm
  • a0e86e1 test: added test for dnf_sort and applied test
  • 9f59081 Update dnf_sort.c
  • c23da7e test: assert in dnf instead of print
  • 4955910 fix: header descriptions
  • f57931c fix: details in the comments
  • 91af654 fix: merged details with include comment
  • 1cc21d1 fix: run self test comment
  • 8e716cd Merge branch 'TheAlgorithms:master' into master

📊 Changes

2 files changed (+130 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
sorting/dnf_sort.c (+129 -0)

📄 Description

Description of Change

Implementation of the Dutch National Flag algorithm for sorting three valued arrays.

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/941 **Author:** [@Storm9n](https://github.com/Storm9n) **Created:** 2/22/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`53d3fc1`](https://github.com/TheAlgorithms/C/commit/53d3fc101a6f835ce3cfc7d43c8259394005e11e) feat: add dutch national flag sort - [`b8ff22e`](https://github.com/TheAlgorithms/C/commit/b8ff22e81a81756c8fbbb204255d3ff5cb3ec74e) test: add test for dnf_sort algorithm - [`a0e86e1`](https://github.com/TheAlgorithms/C/commit/a0e86e1a1569c8508663f6543f05e71125c80e91) test: added test for dnf_sort and applied test - [`9f59081`](https://github.com/TheAlgorithms/C/commit/9f590819cebfaeca4ec473c462cf76751cda3fcd) Update dnf_sort.c - [`c23da7e`](https://github.com/TheAlgorithms/C/commit/c23da7e961ecdf084bafb762794dbe934448b55e) test: assert in dnf instead of print - [`4955910`](https://github.com/TheAlgorithms/C/commit/49559103f9e3e390abe2055417d36088515264d9) fix: header descriptions - [`f57931c`](https://github.com/TheAlgorithms/C/commit/f57931c5652c401961cd39a6832c6eb23bd6f20f) fix: details in the comments - [`91af654`](https://github.com/TheAlgorithms/C/commit/91af65493b2370689746a441d52bf125f4a61cb7) fix: merged details with include comment - [`1cc21d1`](https://github.com/TheAlgorithms/C/commit/1cc21d171c6af478798564beb24845759112592a) fix: run self test comment - [`8e716cd`](https://github.com/TheAlgorithms/C/commit/8e716cd33623db1a00bdb5e48410446dfff89047) Merge branch 'TheAlgorithms:master' into master ### 📊 Changes **2 files changed** (+130 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) ➕ `sorting/dnf_sort.c` (+129 -0) </details> ### 📄 Description #### Description of Change Implementation of the Dutch National Flag algorithm for sorting three valued arrays. #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/941"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:21:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1476