Would a LinkedList or an ArrayList perform better when run on the following code? Why? public static

Question:

Would a LinkedList or an ArrayList perform better when run on the following code? Why?

public static int min (List list) { int min list.get (0); for (int i = 1; i < list.size (); i++) { if (list.get (i) < min) { min = list.get (i); return min;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: