Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a9d984

Browse files
committed
Test: unit tests
- unit test quicksort. - unit test insertionsort.
1 parent a361b37 commit 3a9d984

File tree

1 file changed

+3
-3
lines changed
  • Data Structures with Java/Code/src/edu/bostonuniversity/playground

1 file changed

+3
-3
lines changed

‎Data Structures with Java/Code/src/edu/bostonuniversity/playground/Playground.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package edu.bostonuniversity.playground;
22

3-
public class Playground{
3+
public class Playground{
44
private static void insertionsort(int[] data, int n) {
55
int i, lt;
66

@@ -47,11 +47,11 @@ private static void quicksort(int[] data, int lo, int hi) {
4747
quicksort(data, gt + 1, hi);
4848
}
4949

50-
public static void quicksort(int[] data) { quicksort(data,0, data.length - 1); }
50+
public static void quicksort(int[] data) { quicksort(data,0,data.length - 1); }
5151

5252
private static void swap(int[] data, int lo, int hi) {
5353
int temp = data[lo];
5454
data[lo] = data[hi];
5555
data[hi] = temp;
5656
}
57-
}
57+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /