aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-11-24 16:00:55 -0600
committerRossTheRoss <msattr@gmail.com>2019-11-24 16:00:55 -0600
commitfe14f21ab6b3bf886da8ca8acfbaffd740ba5079 (patch)
tree6e6ea45a790a2ee38dc82379f9fad07b063c5025
parentBasically steal someone else's code lol (diff)
downloadhomework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.tar
homework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.tar.gz
homework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.tar.bz2
homework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.tar.lz
homework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.tar.xz
homework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.tar.zst
homework-fe14f21ab6b3bf886da8ca8acfbaffd740ba5079.zip
I've done nothing send help
-rw-r--r--csci1913/Java/project2_strap012.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/csci1913/Java/project2_strap012.java b/csci1913/Java/project2_strap012.java
index a102314..625d44c 100644
--- a/csci1913/Java/project2_strap012.java
+++ b/csci1913/Java/project2_strap012.java
@@ -78,7 +78,19 @@ class Sort {
}
left = sortNodes(left);
right = sortNodes(right);
+ //Combining phase
+ while (left != null && right != null) {
+ if (left.number > right.number) {
+
+ } else {
+ }
+ }
+ if (left == null) {
+ sorted.next=right;
+ } else {
+ sorted.next=left;
+ }
return sorted;
}