Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.4K+ articles
Python
19.6K+ articles
Python Programs
3.7K+ articles
Amazon
1.9K+ articles
Microsoft
811+ articles
Linked List
666+ articles
Linked Lists
303+ articles
Adobe
280+ articles
Python DSA-exercises
27+ articles
Python-DSA
233+ posts
Recent Articles
Popular Articles
Python heapq.heappushpop() Method
Last Updated: 23 July 2025
The heapq.heappushpop() method is part of Python's heapq module, which provides an efficient way to implement heaps (also known as priority queues). This method is a combi...
read more
Python
Data Structures-Heap
Python-DSA
Python heapq.merge() Method
Last Updated: 23 July 2025
The heapq.merge() method in Python is part of the heapq module, which is used for heap-related operations. This method allows you to merge multiple sorted input iterables ...
read more
Python
Python-DSA
Python heapq.heapreplace() Method
Last Updated: 11 June 2026
heapq.heapreplace() function removes and returns the smallest element from a heap and inserts a new element into the heap in a single operation. This is useful when you ne...
read more
Python
Data Structures-Heap
Python-DSA
Python heapq.nsmallest() Method
Last Updated: 11 June 2026
heapq.nsmallest() method returns the n smallest elements from an iterable. It is useful when you need only a few smallest values without sorting the entire collection.Exam...
read more
Python
Data Structures-Heap
Python-DSA
Python heapq.nlargest() Method
Last Updated: 11 June 2026
heapq.nlargest() function returns the n largest elements from an iterable. It is useful when you need only the largest values without sorting the entire dataset.Example: T...
read more
Python
Data Structures-Heap
Python-DSA
Python heapq.heapify() Method
Last Updated: 23 July 2025
The heapq.heapify() function in Python is used to transform a regular list into a valid min-heap. A min-heap is a binary tree where the smallest element is always at the r...
read more
Python
Data Structures-Heap
Python-DSA
Python heapq.heappop() Method
Last Updated: 11 June 2026
heapq.heappop() function removes and returns the smallest element from a heap. After removing the element, the heap is automatically rearranged to maintain the heap proper...
read more
Python
Python-DSA
Graphs in Python
Last Updated: 23 July 2025
Graphis anon-linear data structureconsisting of vertices and edges. The vertices are sometimes also referred to as nodes and the edges are lines or arcs that connect any t...
read more
Python
Python Programs
Python-DSA
Trees in Python
Last Updated: 23 July 2025
Tree Data Structureis a non-linear data structurein which a collection of elements known as nodes are connected to each other via edges such that there exists exactly one ...
read more
Python
Python Programs
Python-DSA
RoadMap for DSA in Python
Last Updated: 23 July 2025
Mastering Data Structures and Algorithms (DSA) is key to optimizing code and solving problems efficiently. Whether you're building applications or preparing for tech inter...
read more
DSA
python
Python-DSA
Postorder Traversal of Binary Tree in Python
Last Updated: 23 July 2025
Postorder traversalis defined as a type oftree traversalwhich follows the Left-Right-Root policy such that for each node:Theleft subtreeis traversed firstThen theright sub...
read more
Python
Python-DSA
Preorder Traversal of Binary Tree in Python
Last Updated: 23 July 2025
Preorder traversalis defined as a type oftree traversalthat follows the Root-Left-Right policy where:Therootnode of the subtree is visited first.Then theleft subtreeis tra...
read more
Python
Python-DSA
Inorder Traversal of Binary Tree in Python
Last Updated: 23 July 2025
Inorder traversalis defined as a type oftree traversal techniquewhich follows the Left-Root-Right pattern, such that:Theleft subtreeis traversed firstThen therootnode for ...
read more
Python
Python-DSA
Introduction to Graphs in Python
Last Updated: 23 July 2025
Graphis anon-linear data structureconsisting of vertices and edges. The vertices are sometimes also referred to as nodes and the edges are lines or arcs that connect any t...
read more
Python
Python-DSA
Dynamic Programming in Python
Last Updated: 11 June 2026
Dynamic Programming (DP) is a technique used to solve problems by breaking them into smaller subproblems and storing their results for later use.It avoids solving the same...
read more
Dynamic Programming
Python
Python-DSA
1
2
3
4
...
16