Write a program to print factorial of a number in PHP. In this tutorial, I’ll explain how to write a factorial program in PHP using iterative as well as recursive approach. Before solving this problem let’s understand what is factorial.
Write a program to check whether a number is palindrome or not using php code. How to solve this problem.
Write a program to print Fibonacci Series using recursion. Fibonacci series is a very important program in terms of interviews. To make this program little tough interviewer ask to write a fibonacci series code using recursion.
You can check my previous post to use iterative approach to print Fibonacci series.
What is Recursion.
In recursion function call itself until the base condition is reached.
Read explanation of recursion and what’s the difference between iterative and recursive function.
Objective Question on Recursion.
Write a program to implement a stack using linked list. In my last post, I have explained the implementation of a stack data structure using an array. In this post, I’ll explain how to implement a stack data structure using linked list.