mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #802] [feat/fix/docs]: Fix bubble_sort2.c implementation bug and some documentation/structure improvements #1322
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/802
State: closed
Merged: Yes
Description of Change
As of now, the implementation of the bubble-sort algorithm in bubble_sort2.c is not working.
The above snippet illustrates the problem. The flag
isSortis initially set toFALSEand, consequently, the loop where the array would be sorted never runs. Other than that, we can also see camelCase being used and the lack of a separate test function and documentation as perCONTRIBUTING.mdinstructions.Checklist
isSortflag