Find O(f(n) for the given functions: [closed]


(1). f(n) = 2^n + 6logn

(2). f(n) = n^3 + 42n^2 + 0n^4 + 2nlogn

(3). If f(n) = 4000 + logn

my answer is

  1. O(2^n)

  2. O(n^3)

  3. O(logn)

is that correct or if you have different answer please.