Package adt

Examples of adt.LinkedList.mergeSort()


    LinkedList a = new LinkedList(new int[]{12, 6, 29});
    LinkedList b = new LinkedList(new int[]{23, 5, 8});
    LinkedList c = new LinkedList(new int[]{90, 20, 59});
   
    b.mergeSort(true);
    c.mergeSort(false);
   
    findSumTriple(a.head, b.head, c.head, 101);
  }
 
  static void findSumTriple(ListNode l1, ListNode l2, ListNode l3, int target) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.