Skip to content

Tag Archives: Python DSA-exercises

A Queue is a collection of objects that are inserted and removed using First in First out Principle(FIFO). Insertion is done at the back(Rear) of… Read More
Supervised Learning : It is the learning where the value or result that we want to predict is within the training data (labeled data) and the… Read More
Being familiar with the concept of queue, which follows FIFO rule, i.e first in first out, that suggests a front removal and rear insertion. This… Read More
Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack. Examples:  Input :… Read More
Given an expression string, write a python program to find whether a given string has balanced parentheses or not. Examples: Input : {[]{()}} Output :… Read More
Given a singly linked list, find the middle of the linked list. Given a singly linked list, find the middle of the linked list. For… Read More
Given the number of vertices N of a graph. The task is to determine the Edge cover.Edge Cover: Minimum number of edges required to cover… Read More
Prerequisite – Graphs To draw graph using in built libraries – Graph plotting in PythonIn this article, we will see how to implement graph in python… Read More
Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire… Read More
You are given n activities with their start and finish times. Select the maximum number of activities that can be performed by a single person,… Read More
Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m,… Read More
The N Queen is the problem of placing N chess queens on an N×N chessboard so that no two queens attack each other. For example,… Read More
Given pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by… Read More

Start Your Coding Journey Now!