@sakharam
your explanation was correct, it is θ( n4 ) only
@phaneendrababu
θ( n4 ) = O(n5) ----- it is also correct, but we choose lower bound always ===> it is θ( n4 )
Look at this once , this is from Narasimha Karumanchi ,IIT Bombay
Answer is O(n4)
64.3k questions
77.9k answers
244k comments
80.0k users