Let $f\left ( n \right )$m $g\left ( n \right )$ and $h\left ( n \right )$ be functions whose domain is a subset of positive integers such that $f\left ( n \right )= O\left (n^{2}\right), g\left ( n \right )= O\left(n^{3}\right), h\left ( n \right )= O\left(n^{4}\right).$ Then:
Which of the above is/are incorrect?
if f(n) = O(n2), g(n) = O(n3), then how option c) f(n).g(n)=O(n4) is possible ?
also if h(n) = O(n4) and g(n) = O(n3) then how option b) h(n)-g(n)=O(n) is possible ?
so option b) and c) is incorrect hence D) is correct/ valid option.
@vineet
why not read question carefully !!
it says Which of the above is/are incorrect ?
64.3k questions
77.9k answers
244k comments
80.0k users