HomeAuthor: SandhyaPage 3

Sandhya

Showing 41 - 54 of 54 results
This program calculates the factorial of a given number using recursion. Problem statement Given a positive integer, we need to...
This Python program utilizes Depth-First Search (DFS) to find all reachable nodes in a given graph. DFS is a graph...
This Python program implements a basic stack data structure with the following operations: In computer science, a stack is a...
This python program calculates the number of leaf nodes in a given tree data structure. Problem Statement Given a tree,...
This C program finds the first N Fibonacci numbers and displays them. Problem statement Write a C program to find...
This Python program demonstrates the implementation of binary search using recursion. Binary search is an efficient algorithm to find a...
This C program converts decimal numbers to Roman numerals using a function called convertToRoman. It takes user input, checks if...
The python program demonstrates how to print the boundary traversal of a binary tree, which includes printing the left boundary,...
In linear algebra, a lower triangular matrix is a square matrix in which all the elements above the main diagonal...
In this Python program, we will generate Gray codes using recursion. Gray code is a binary numeral system where two...
This C program converts a binary number to its decimal equivalent using the power of 2. It takes a binary...
This Python program uses a recursive approach to solve the n-Queens problem. It explores all possible combinations of queen placements...
In this Python program, weโ€™ll create a program to find the sum of all the values in a dictionary. Given...
This Python program implements a deque (double-ended queue) using a list. A deque allows elements to be added or removed...