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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!