1. Engineering
  2. Computer Science
  3. what is the bigoh order of the following code fragment...

Question: what is the bigoh order of the following code fragment...

Question details

What is the Big-Oh order of the following code fragment? The fragment is parametrized on the variable
n. Assume that you are measuring the number of println calls.


for ( int i = 1 ; i <= n ; i++)
for ( int j = 1 ; j <= n ; j *= 10)

System . out . p r i n t l n ( "Nested loops ! " ) ;

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution