What is the running time of the following codefragment:
for (int count = 0; count < n*n; count++)
{
for (int count2 = 0; count 2 < n; count 2 = count2 +4)
{
System.out.println(count, count2)
sum=sum+count+count2;
}
}
What is the running time of the following code fragment: for (int count = 0; count < n*n; count ++) { for (int count2 =
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am