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 d33cdd8

Browse files
committed
Test: unit test
- unit test quicksort. - unit test insertionsort.
1 parent f7eca49 commit d33cdd8

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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

7-
for (i = 1; i <= n; i++) {
7+
for (i = 1; i <= n; i++) {
88
lt = i - 1;
99
while (lt >= 0 && data[lt] > data[i]) { swap(data, lt--, i--); }
1010
}

0 commit comments

Comments
(0)

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