aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-11-25 11:33:58 -0600
committerRossTheRoss <msattr@gmail.com>2019-11-25 11:33:58 -0600
commitb654cc6a1cf4b56f08a1f06e7f74a83f29c2758c (patch)
tree5187309399e7289ff8e673cecf1878ca5f388da2
parentIt's still borked (diff)
downloadhomework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.tar
homework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.tar.gz
homework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.tar.bz2
homework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.tar.lz
homework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.tar.xz
homework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.tar.zst
homework-b654cc6a1cf4b56f08a1f06e7f74a83f29c2758c.zip
ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
h
Diffstat (limited to '')
-rw-r--r--csci1913/Java/project2_strap012.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/csci1913/Java/project2_strap012.java b/csci1913/Java/project2_strap012.java
index 19a7733..ae4be3f 100644
--- a/csci1913/Java/project2_strap012.java
+++ b/csci1913/Java/project2_strap012.java
@@ -76,6 +76,7 @@ class Sort {
unsorted = next;
}
}
+ //Sorting (recursive) Phase
left = sortNodes(left);
right = sortNodes(right);
//Combining phase
@@ -108,11 +109,11 @@ class Sort {
end = temp;
}
}
- // if (left == null) {
- // sorted.next=right;
- // } else {
- // sorted.next=left;
- // }
+ if (left == null) {
+ end.next=right;
+ } else {
+ end.next=left;
+ }
return sorted;
}