1. Write a method to measure sortedness of an array. The method header is:
2. Write an iterative method to measure sortedness of a collection of linked nodes. The method header is:
3. Write a recursive method to measure sortedness of a collection of linked nodes.
Document Preview:
Meetup Questions and ideas Write a method to measure sortedness of an array. The method header is: public static double sortedness(Comparable[] array) Write an iterative method to measure sortedness of a collection of linked nodes. The method header is: public static double sortednessIterative(Node node) Write a recursive method to measure sortedness of a collection of linked nodes. public static double sortednessIterative(Node node)