Skip to content

Commit b634634

Browse files
committed
Organization
1 parent 093dc55 commit b634634

File tree

79 files changed

+4
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4
-9
lines changed
-78.3 KB
Binary file not shown.
-245 Bytes
Binary file not shown.

C#/.vs/GrailsortTester/project-colors.json renamed to C#/AceOfSpadesProduc100's Rewritten Grailsort for C#/.vs/GrailsortTester/project-colors.json

File renamed without changes.

C#/.vs/GrailsortTester/v16/.suo renamed to C#/AceOfSpadesProduc100's Rewritten Grailsort for C#/.vs/GrailsortTester/v16/.suo

File renamed without changes.
Binary file not shown.

C#/.vs/GrailsortTester/v17/.suo renamed to C#/AceOfSpadesProduc100's Rewritten Grailsort for C#/.vs/GrailsortTester/v17/.suo

55 KB
Binary file not shown.

C#/GrailSort.cs renamed to C#/AceOfSpadesProduc100's Rewritten Grailsort for C#/GrailSort.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace GrailsortTester
6868
//
6969
// Editor: AceOfSpadesProduc100, from DeveloperSort's Java version
7070
//
71-
// Current status: Changed from object to angle bracket generics in 4/28/2022. Only ints tested.
71+
// Current status: Only ints tested.
7272

7373
//Credit to phoenixbound for this clever idea
7474
enum Subarray
@@ -77,19 +77,14 @@ enum Subarray
7777
RIGHT
7878
}
7979
#nullable enable
80-
public class GrailSort<K>
80+
public class GrailSort<K>(IComparer<K> cmp)
8181
{
8282
private int currBlockLen;
8383
private Subarray currBlockOrigin;
8484

8585

8686

87-
public readonly IComparer<K> cmp;
88-
89-
public GrailSort(IComparer<K> cmp)
90-
{
91-
this.cmp = cmp;
92-
}
87+
public readonly IComparer<K> cmp = cmp;
9388

9489
private static void GrailSwap(K[] array, int a, int b)
9590
{

C#/GrailsortTester.csproj renamed to C#/AceOfSpadesProduc100's Rewritten Grailsort for C#/GrailsortTester.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<StartupObject>GrailsortTester.Program</StartupObject>
77
</PropertyGroup>
88

C#/GrailsortTester.csproj.user renamed to C#/AceOfSpadesProduc100's Rewritten Grailsort for C#/GrailsortTester.csproj.user

File renamed without changes.

0 commit comments

Comments
 (0)