Skip to content
master
Go to file
Code

Latest commit

The idea is to use two stacks. We can use one stack for printing from left to right and other stack for printing from right to left. In every iteration, we have nodes of one level in one of the stacks. We print the nodes, and push nodes of next level in other stack.
362fec6

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Data-Structures-using-Python

This is my repository for Data Structures using Python. This repository mainly aims at implementation of various Data Structures using Python.

Omkar Pathak,
Pune, Maharashtra, India.

Arrays

Linked Lists

Stack

Queue

Tree

Graph

Heap

Dynamic Programming

Donation

If you have found my softwares to be of any use to you, do consider helping me pay my internet bills. This would encourage me to create many such softwares :)

PayPal Donate via PayPal!
₹ (INR) Donate via Instamojo
You can’t perform that action at this time.