# Others

## POWER  OF A NUMBER USING RECURSION and nCr USING RECURSION￼ ￼

In this article, we are going to have a look at nCr USING RECURSION and POWER  OF A NUMBER USING RECURSION. INTRODUCTION: nCr USING RECURSION In this tutorial, we are going to calculate the combination formula, nCr using recursion The nCr is a combination that is known for the selection of things without considering the …

## SUM OF THE NATURAL NUMBERS USING RECURSION and FACTORIAL USING RECURSION￼

In this article, we are going to have a look at SUM OF THE NATURAL NUMBERS USING RECURSION and FACTORIAL USING RECURSION. INTRODUCTION: SUM OF THE NATURAL NUMBERS USING RECURSION In this tutorial, we are going to learn about the sum of the first n natural numbers using recursion. For example:Input n: 5 Output: 1+2+3+4+5 …

## RECURSION AND ITS TYPES￼

In this article, we are going to learn about RECURSION AND ITS TYPES in a detailed way. RECURSION: The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Using the recursive algorithm we can solve problems such as Towers of Hanoi, Inorder/Preorder/Postorder …

## Recursion Part2

Recursion is a technique in computer programming where a function calls itself repeatedly until a certain condition is met. This technique is commonly used in solving problems that can be broken down into smaller, simpler instances of the same problem. Recursion can be a powerful tool, but it can also be tricky to understand. In …

## RECURSION IN DSA

INTRODUCTION In this tutorial, we will learn about RECURSION IN DSA, various kinds of recursive functions, and their properties. Now first of all, what is meant by recursion? Recursion is a process in which a function calls itself directly or indirectly until the base condition of the recursive function breaks. In recursion, the approach solves a particular …

## Time and Space Complexities from code

Introduction Finding the Time and Space Complexities from codes of a piece of code is an important step in understanding its performance and optimizing it for efficiency. In this article, we will explore the basic concepts of time and space complexity, and how to determine them from a given piece of code. Time Complexity Time …

## Check whether the given number is a palindrome.￼

INTRODUCTION Write a program to Check whether the given number is a palindrome. A palindrome number is a number that is as same as the original number when it is reversed. APPROACH: To check whether the given number is palindrome or not, we will check the number by reversing it and comparing it with the …

## TO PRINT ALL DIVISORS OF A GIVEN NUMBER￼

INTRODUCTION Given an integer n, write a program TO PRINT ALL DIVISORS OF A GIVEN NUMBER. Here’s an algorithm to find all divisors of a given number: Start a loop from 1 to the given number. For each iteration, check if the current number (i) is a divisor of the given number by using the …

## THE GIVEN NUMBER IS ARMSTRONG OR NOT￼

INTRODUCTION CHECK WHETHER THE GIVEN NUMBER IS ARMSTRONG OR NOT. The Armstrong number of n digits is a number in which the sum of each digit of the number with power n is equal to the original number. The Armstrong number is also known as the Narcissist number. Let’s look at an example for a better …

## REVERSE THE GIVEN NUMBER￼

INTRODUCTION Write a program to REVERSE THE GIVEN NUMBER. APPROACH: The idea behind reversing a given number is to extract the last digit of the number and form a new number in the reverse order. To extract the last digit, we will simply divide the number by 10, the remainder which results out is the …