Skip to content

Commit 1a7e096

Browse files
ClémentClément
authored andcommitted
Improving notes on sorting.
1 parent 37992f3 commit 1a7e096

3 files changed

Lines changed: 181 additions & 163 deletions

File tree

source/code/projects/Sorting/Sorting/Program.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ static void Main(string[] args)
1111
{
1212
test.Add(gen.Next(50));
1313
}
14+
Displaying<int>.DisplayHeader(test, 0, test.Count);
1415
Displaying<int>.Display(test);
1516
Sorting<int>.InsertionSort(test);
16-
}
17+
18+
test.Clear();
19+
for (int i = 0; i < 20; i++)
20+
{
21+
test.Add(gen.Next(50));
22+
}
23+
Sorting<int>.Heapsort(test);
24+
}
1725
}

0 commit comments

Comments
 (0)