Skip to content

Commit 2d9822e

Browse files
Added BubbleSort algorithm
1 parent d9d3a94 commit 2d9822e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Algorithms.NET.Debug/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
List<double> unsortedAsc = new() { 0,1,2,3,4,5 };
22
List<double> unsortedDesc = new() { 5,4,3,2,1,0 };
33

4-
var sortedDesc = Algorithms.NET.BubbleSort.SortDescending(unsortedAsc);
5-
var sortedAsc = Algorithms.NET.BubbleSort.SortAscending(unsortedDesc);
4+
var sortedDesc = Algorithms.NET.BubbleSort.BubbleSort.SortDescending(unsortedAsc);
5+
var sortedAsc = Algorithms.NET.BubbleSort.BubbleSort.SortAscending(unsortedDesc);
66

77

88
foreach(var item in sortedDesc)

Algorithms.NET/BubbleSort.cs renamed to Algorithms.NET/BubbleSort/BubbleSort.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33

4-
namespace Algorithms.NET
4+
namespace Algorithms.NET.BubbleSort
55
{
66
public static class BubbleSort
77
{

0 commit comments

Comments
 (0)