Skip to content
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

Refresh Pancake Sort #64

Merged
merged 5 commits into from
Jun 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Algorithms/Sorters/PancakeSorter.cs
Co-Authored-By: Andrii Siriak <siryaka@gmail.com>
  • Loading branch information
agentblythe and siriak authored Jun 15, 2019
commit ba7a86123338a2b99be4695d0d55872edda38d6b
2 changes: 1 addition & 1 deletion Algorithms/Sorters/PancakeSorter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void Flip(T[] array, int i)
//
private int FindMax(T[] array, int n, IComparer<T> comparer)
{
int mi, i;
var mi = 0;
for (var i = 0; i < n; i++)
{
if (comparer.Compare(array[i], array[mi]) == 1)
Expand Down