aboutsummaryrefslogtreecommitdiffstats
path: root/csci1913/Java
diff options
context:
space:
mode:
Diffstat (limited to 'csci1913/Java')
-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;
}