Question: What is the time complexity of the following algorithm? public static void main() { int n1-10; int n2= 20; if(n2 = n1) for (int
What is the time complexity of the following algorithm? public static void main() { int n1-10; int n2= 20; if(n2 = n1) for (int i = 0; i
Step by Step Solution
3.31 Rating (145 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below The provided co... View full answer
Get step-by-step solutions from verified subject matter experts
