HomeAuthor: SandhyaPage 2

Sandhya

Showing 21 - 40 of 54 results
This Python program counts the number of non-leaf nodes in a given tree data structure. A tree is a hierarchical...
In finance, a binomial tree is a graphical representation used to model the price movement of financial instruments over time....
This Python program solves the Celebrity Problem by finding a person who is known by everyone but does not know...
In this Python program, we will create a class to calculate the area of a rectangle. Weโ€™ll define a class...
This C program prints Pascalโ€™s triangle based on the number of rows entered by the user. Pascalโ€™s triangle is a...
This C program determines whether a given year is a leap year or not. A leap year is a year...
In this program, we will create a Python script to concatenate two dictionaries. Dictionaries are data structures that store key-value...
In this Python program, we will convert Gray codes to binary codes. Gray code is a binary numeral system where...
This python program demonstrates how to add a new key-value pair to an existing dictionary in Python. Problem Statement: You...
This Python program implements Breadth-First Search (BFS) on a graph using a queue. BFS is used to traverse or search...
This C program converts a decimal number to its binary representation using recursion. It takes a decimal number as input...
In this Python program, we will reverse a linked list without using recursion. Weโ€™ll implement a non-recursive approach to reverse...
In this Python program, we will convert a binary number to its corresponding Gray code. The Gray code is a...
This Python program uses sets to count the number of vowels in a given string. Problem Statement: You are tasked...
In this Python program, weโ€™ll be implementing a stack using two queues. The stack data structure follows the Last-In-First-Out (LIFO)...
This C program converts time from the 12-hour format (HH:MM AM/PM) to the 24-hour format (HH:MM). It takes the input...
This Python program implements Bucket Sort, a sorting algorithm that divides the input data into buckets and then sorts each...
Introduction This C program calculates the Nth Fibonacci number using recursion. The Fibonacci sequence is a series of numbers in...
This C# program calculates and displays an upper triangular matrix based on user input. Problem Statement: The program takes the...
This Python program solves the Josephus Problem using a circular linked list. The Josephus Problem is a theoretical problem related...