Question: What is the running time of the following code? public static List makelist( int N ) ArrayList 1st = new ArrayListo( ); for( int i
What is the running time of the following code?
.png)
public static List makelist( int N ) ArrayList 1st = new ArrayListo( ); for( int i = 0; i < N; i++ ) { 1st.add( i); 1st.trimToSize();
Step by Step Solution
3.33 Rating (171 Votes )
There are 3 Steps involved in it
O N 2 The trim method reduc... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
1486-C-S-A(316).docx
120 KBs Word File
