Example of O(n!)?
What is an example (in code) of a O(n!) function? It should take appropriate number of operations to run in reference to n; that is, I'm asking about time complexity. ...
What is an example (in code) of a O(n!) function? It should take appropriate number of operations to run in reference to n; that is, I'm asking about time complexity. ...
Possible Duplicate: Big O Notations Questions Hi, I need an example in codes with reference to O(N!) time complexity. ...
Given a number, this program computes the factorial, but it no long works with number bigger than 9 .section .data .section .text .globl _start _start: pushl $10 movl %eax, %ebx call func addl $4, %esp movl %eax, %ebx movl $1, %eax int $0x80 .type func,@function func: pushl %ebp movl %esp, %ebp movl 8(%ebp), %eax ...
I have some OAM code here, and I've looked up all the instructions, what they do how they act, and I've re written it all pseudo, but I'm having a problem locating (so I can count how many) loops are in the program. I feel like it should be staring me in the eyes, and I've done a thousand factorial programs in C/Java etc.. but I can't se...