What is the Big-O runtime for the following method (write outyour work, line by line).
public static void removeFirstHalf( List<?> lst )
{
int theSize = lst.size( ) / 2;
for( int i = 0; i < theSize; i++ )
lst.remove( 0 );
}
Expert Answer
An answer will be send to you shortly. . . . .