Google Company Programming

If there is a N sorted array then what is time complexity of finding 2 numbers with sum less than 1000.
A) O(1) B) O(n^2) C) O(n) D) O(logn)

Read Solution (Total 3)

Google Other Question

Let w(n) and A(n) denote the worst case and average case running time of an algorithm executed on an input of size n. which of the following is ALWAYS TRUE?
A) A(n) = Omega(W(n)) B) A(n) = Theta(W(n)) C) A(n) = O(W(n)) D) A(n) = o(W(n)
A water tank is hemispherical at the bottom and cylindrical at the top. If its radius is 12 m and capacity is 3312π cubic metres, height of the cylindrical portion will be ___ meters.