Showing 141 - 160 of 165 results
Bubble Sort is a simple and straightforward sorting algorithm used to arrange elements in a list or array into a...
This Python program counts the number of digits and letters in a string. In many text processing applications, itโ€™s often...
This Python program replaces all occurrences of the character โ€˜aโ€™ with โ€˜$โ€™ in a given string. Problem Statement Write a...
This Python program flattens a nested list using recursion.Flattening a nested list refers to the process of converting a list...
This Python program counts the occurrences of a specified word in a text file Problem Statement You are tasked with...
String manipulation is a fundamental skill in programming, and one common task is to determine whether a substring exists within...
Flattening a nested list means converting a list that contains other lists (and potentially more nested lists) into a single-level...
This python program demonstrates the implementation of various doubly linked list operations using a custom class in Python. Doubly linked...
In this Python program, weโ€™ll tackle the task of finding the largest element within a Doubly Linked List. Doubly Linked...
A singly linked list is a data structure that consists of a sequence of nodes, where each node stores an...
The python program demonstrates how to print the boundary traversal of a binary tree, which includes printing the left boundary,...
In this Python program, we will check whether a given number is prime or not. A prime number is a...
In this Python program, we will generate Gray codes using recursion. Gray code is a binary numeral system where two...
Object-oriented programming (OOP) allows us to create classes that encapsulate data and methods. This program demonstrates how to create a...
A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For...
A circular linked list is a variation of the linked list data structure where the last nodeโ€™s โ€˜nextโ€™ pointer points...
In this Python program, we will create a singly linked list and remove duplicate elements from it. A linked list...
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 that finds the second largest number in a list of integers. Weโ€™ll...
Appending data to a file is a common operation in programming, especially when you want to store data for later...