HomeAuthor: Sandhya

Sandhya

Showing 1 - 20 of 54 results
In this Python program, we will convert temperature values from Celsius to Fahrenheit. The Celsius and Fahrenheit scales are two...
In this Python program, we will reverse a stack using recursion. A stack is a data structure that follows the...
This Python program sorts a list of elements based on their lengths in ascending order. It demonstrates how to use...
This C program converts a binary number to its octal equivalent. Problem statement The program takes a binary number as...
This program demonstrates how to remove a key from a dictionary in Python. Problem Statement: Given a dictionary, remove a...
In this Python program, weโ€™ll create a class that represents a list. The class will have methods to append elements,...
This Python program takes a dictionary as input and multiplies all the values in the dictionary. It then returns the...
In C programming, a union is a user-defined data type that allows storing different data types in the same memory...
This Python program finds and displays the common characters present in two input strings. Problem Statement: Given two strings, we...
In this Python program, weโ€™ll create a linked list and segregate its nodes into two separate lists โ€“ one for...
Introduction This C program prints a diamond pattern based on the number of rows provided by the user. It uses...
In this Python program, we will implement a queue data structure using a list. A queue follows the First-In-First-Out (FIFO)...
This C program finds missing numbers in an array. It takes an array as input and prints the numbers that...
This Python program checks if an undirected graph is bipartite using BFS and a color-coding approach. A bipartite graph can...
In this Python program, we will implement a recursive function to reverse a string. Recursion is a technique where a...
In this Python program, we will use Breadth-First Search (BFS) to find all reachable nodes in a graph starting from...
In this Python program, we will implement a queue data structure using two stacks. The idea is to simulate the...
In this C# program, we will create a console application to add two matrices. Matrices are two-dimensional arrays, and adding...
This C program converts a given number of days into years, months, and remaining days. It uses a function called...
This C program converts a decimal number to its equivalent octal representation. Problem statement You need to convert a decimal...