Git Product home page Git Product logo

data-structures's Introduction

data-structures

Authors: Megan Slater, Tanner Lake, Tyler Peek

Summary: A repository to hold sample code for a number of classic data structures implemented in Python.

Singly Linked List: Contains a Node class that holds a variable and a pointer to the next Node. Methods: init, repr, str, insert, pop, size, search, remove, dequeue, display

Doubly-Linked List: Contains a Node class that holds a variable and two pointers: one to the previous Node and one to the Next Node. Methods: insert, append, pop, shift, remove

Stack: A Last In, First Out(LIFO) structure. Contains a LinkedList that keeps track of the objects passed in. Methods: push, pop

Parethetics: A function that takes in a string and: Return 1 if the string is "open" (there are open parens that are not closed) Return 0 if the string is "balanced" (there are an equal number of open and closed parentheses in the string) Return -1 if the string is "broken" (a closing parens has not been proceeded by one that opens) It also takes an optional argument of a string of two characters. The first will act as an opening symbol and the second as a closing symbol.

Queue: A First In, First Out(FIFO) structure. Contains a LinkedList that keeps track of the objects passed in as well as the size. Methods: enqueue, dequeue, size

Resources/Collaboration Used:

Travis

data-structures's People

Contributors

meslater1030 avatar tlake avatar tpeek avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.