1 Replies - 1921 Views - Last Post: 02 March 2013 - 01:21 PM Rate Topic: -----

#1 medaa  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 106
  • Joined: 24-October 12

Big-O time complexity.

Posted 02 March 2013 - 01:17 PM

Hi I got this code on my midterm,

for i in range(2):
    for j in range(2):
        print(i,j)


I need help finding the big-o complexity for this code, and for any code in general. Can someone help explain time complexity or refer me to a good site.

Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Big-O time complexity.

#2 KYA  Icon User is offline

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3093
  • View blog
  • Posts: 19,139
  • Joined: 14-September 07

Re: Big-O time complexity.

Posted 02 March 2013 - 01:21 PM

Shameless plug to my Big O tutorial.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1