Skip to content

Category Archives: Python Programs

Given a linked list with a loop, the task is to find whether it is palindrome or not. You are not allowed to remove the… Read More
Given a list, the task is to write a Python Program to find the Index containing String. Example: Input: [‘sravan’, 98, ‘harsha’, ‘jyothika’, ‘deepika’, 78,… Read More
In this article, we will discuss how to convert a list of dictionaries to a dictionary of lists. Method 1: Using for loop By iterating… Read More
In this article, we will discuss how to add values to the dictionary of lists.  We can add values to a dictionary by using a… Read More
In this article, we will sort a dictionary of tuples. Dictionary of tuples means tuple is a value in a dictionary or tuple is key… Read More
In this article, we will discuss how to create a dictionary with list comprehension in Python. Method 1: Using dict() method Using dict() method we… Read More
In this article, we will update the values of a list of dictionaries. Method 1: Using append() function The append function is used to insert… Read More
Given a linked list, print reverse of it using a recursive function. For example, if the given linked list is 1->2->3->4, then output should be… Read More
Given an array of numbers, arrange them in a way that yields the largest value. For example, if the given numbers are {54, 546, 548,… Read More
Using pointers, loop through the whole list and keep track of the node prior to the node containing the last occurrence key using a special… Read More
Algorithm For Python:In Python, automatic garbage collection happens, so deleting a linked list is easy. Just need to change head to null. Implementation:  Python3 #… Read More
Given a linked list handling string data, check to see whether data is palindrome or not? Examples: Input: a -> bc -> d -> dcb… Read More
Given singly linked list with every node having an additional “arbitrary” pointer that currently points to NULL. We need to make the “arbitrary” pointer to… Read More
Given an array, only rotation operation is allowed on array. We can rotate the array as many times as we want. Return the maximum possible… Read More
Given a sorted linked list, delete all nodes that have duplicate numbers (all occurrences), leaving only numbers that appear once in the original list. Examples: Input:… Read More

Start Your Coding Journey Now!