I have seen O(N^2), O(LOGN) but not with factorial.
Any advice? Please dont hook me up with tutorials with only n^2,n,1,logn only because i already googled all of them.
public void run(int n) {
for(int i=1; i<=n; i++) {
run(n-1);
}
}
Gave this to the automarker but it never went through.
This post has been edited by derycklong: 18 October 2010 - 04:43 AM

New Topic/Question
Reply



MultiQuote





|