What is the Big-O runtime for the following method (write outyour work, line by line).
public static List<Integer> makeList( int N )
{
ArrayList<Integer> lst = new ArrayList<>( );
for( int i = 0; i < N; i++ )
{
lst.add( i );
lst.trimToSize( );
}
}
Expert Answer
An answer will be send to you shortly. . . . .