Question: 1. which one is not List interface method? get() add() sort() set() size() remove() 2. Sets cannot have duplicate elements True False 3. What is
1. which one is not List interface method?
get() add() sort() set() size() remove()
2. Sets cannot have duplicate elements
True False
3. What is the big-Oh notation of the given code snippet?
void snippet() { for (int i = 0; i < n; i=i+5) a[i] = i; }
4. We do not need code efficiency any more since modern computers are powerful enough
True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
