Skip to content

nadiabahrami/data-structures

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-structures

This Python program will hold sample code for a number of classic data structures implemented in Python.

Queue

Another Node-chain setup but with first in and first out principles

Source: http://ls.pwd.io/2014/08/singly-and-doubly-linked-lists-in-python/

Proper_parenthetics_norton.py

This is my parenthetics parser for checking if a string is either open, broken or even.

Parenthetical_nadia.py

This is Nadia's parser for parentheisis.

Deque

Anothe Node-chain setup composed with double linked list but with the following attributes:

- pop()
- popleft()
- size()
- peek()
- peekleft()
- append(val)
- appendleft(val)

Binary_heap.py

A binnary heap structure that sorts max value at the pinnical and seach child of each parent in the triplicated format must be less then the parent. Fits the algorithm of i, 2i, 2i+1 where i is the parent and the next two are children.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%