Hi guys,
please tell me how to write the iterative version of fibonacci series using a stack.
Thanks
please tell me how to write the iterative version of fibonacci series using a stack.
Thanks
#define STACK_SIZE 10 Class Stack { public:[indent]Stack(); void push(int value); int pop(); [/indent] private:[indent]int size = STACK_SIZE; int count = 0; int stack[STACK_SIZE]; [/indent] }
Comment