Write a C program to find the power of a number without using pow() function. Find power of number using loop Suppose you need to find . The simplest way is to use a loop and multiply times. Steps Let the input be . X is the base and Y is the exponent. Initialize power …
All articles that involve recursion.
Merge Two Sorted Arrays into one sorted array using Recursion. Merging sorted arrays using recursion is similar to merging using a loop.
Recursive Binary Search Algorithm Pseudocode in both Ascending order and descending order. Pseudo code for recursive binary search algorithm.
Write a C Program to add 2 Matrices. Write Programs for the addition of 2 matrices, one using recursion (recursively) and one using loops.
Write a C/C++ Program to Print Pascal’s Triangle. It can be implemented using 1D Array, 2D Array, Jagged Array and recursion.
Write a Program to Reverse an Array in c/c++. It can be done 2 ways, using Recursion (recursively) and without using recursion (iteratively).
Reverse the given Linked List is Group of given size K using recursion (recursively) and without recursion (iteratively).
Linked List can be reversed both recursively and iteratively. Reverse a Linked List using recursion. Reverse a Linked List using iteration.
Ternary search is a searching algorithm that searches an element in a sorted array. Algorithm Ternary search works similar to Binary search. The only difference is instead of dividing the array into 2 parts, the array is divided into three parts and 2 parts are rejected on each iteration. That is, the array is reduced …
Binary search is algorithm that searches an element in a sorted array in O(logN) complexity. It can be implemented using recursion or without recursion.