Question: Java multiple choice questions, Thanks so much in advance! 1) the order of adding 1 to each element in a one dimensional array of N
Java multiple choice questions, Thanks so much in advance!
1) the order of adding 1 to each element in a one dimensional array of N numbers
a) O(1) b) O(logN) c)O(N) D) O(N logN) E) O(N*N)
2) The order of adding 10.0 to each element in a one dimensional array of N real numbers
a) O(1) b) O(logN) c)O(N) D) O(N logN) E) O(N*N)
3) The order of adding 1 to each element in a square two dimensional array of integers where the number of rows is N.
a) O(1) b) O(logN) c)O(N) D) O(N logN) E) O(N*N)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
