|
hide this |
check help page for viewing Big_O_Notation.swf in full screen
Anonymous: int foo(int n){ static const int MAX_N = (sizeof(int)==2 ? 6 : 8); if(n>MAX_N)return -1; int p=1; for(int i=1;i<n;i++){ for(int j=1;j<i;j++)p*=j; } return p; } (October 10, 2011, 1:35 am) Anonymous: <n;i++){ for(int j=1;j<i;j++)p*=j; } return p; } (October 10, 2011, 1:36 am) Anonymous: int foo(int n){ static const int MAX_N = (sizeof(int)==2 ? 6 : 8); if(n>MAX_N)return -1; int p=1; for(int i=1;iLESSTHANn;i++){ for(int j=1;jLESSTHANi;j++)p*=j; } return p; } (October 10, 2011, 1:37 am) Anonymous: I wanted a Big O joke, but it never came... (October 11, 2011, 2:37 am) Amish Brethern: Computer programming is bullshit. (October 11, 2011, 2:43 am)
All comments can be found from here: Comments for Big_O_Notation.swf
(Misc - educational - programming)Navigation: Dagobah Flash Gallery
Tags for Big_O_Notation.swf: Misc - educational - programming
|
hide this |