![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | plz tell the complexities. what is the complexity of the following: for(i=0 to n*n) { cout<<"hello\n"; } and for(i = 0 to n) { for(j = 0 to i*i ) { for( k = 0 to j ) { cout<<"hello\n"; } } } |
My System Specs![]() |
| | #2 (permalink) |
| | Re: plz tell the complexities. rajesh kalra <rajeshkalra86@xxxxxx> wrote: Quote: > what is the complexity of the following: I'm unfamiliar with - it uses cout, which looks like C++, but that doesn't use that kind of for loop... -- Jon Skeet - <skeet@xxxxxx> Web site: http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet C# in Depth: http://csharpindepth.com |
My System Specs![]() |