Coder Social home page Coder Social logo

stanford_algorithms_designandanalysis's Introduction

Linked List

Todo

  • create() : create a Linked List and append
  • append() : method pushes element to the Linked List
  • isEmpty() : method returns true if the list is empty
  • addToStart(): method to add a node at starting
  • getPosition() : method that returns element at a particular position
  • insert() : method to insert element at a given position in the Linked List
  • removeByValue() : method to delete a element of a given value
  • removeByPosition() : method to delete a element at a given position
  • addToEnd() : method to add a node at the end
  • display() : method to display all the elements of the Linked List
  • length() : method that returns the length of the Linked List
  • findMin() : method that returns the max element
  • findMax() : method that returns the min element
  • count() : method that returns the occurences of an element
  • pop() : pop method removes last element of the Linked List
  • tostring() : method that returns a string of all elements of the String
  • index() : method that returns index of a particular element
  • copy() : method that returns the copy of the list
  • clear() : method that clears the Linked List
  • toList() : method returns builtin List of python consisting of Elements of Linked List
  • toSet() : method returns builtin Set of python consisting of Elements of Linked List
  • sort() : method that sorts Linked List
  • reverse() : method that returns reversed linked list

Doubly Linked List

Todo

  • create() : create a Linked List and append
  • append() : method pushes element to the Linked List
  • length() : method that returns the length of the Linked List
  • isEmpty() : method returns true if the list is empty
  • addToStart(): method to add a node at starting
  • getPosition() : method that returns element at a particular position
  • display() : method to display all the elements of the Linked List
  • insert() : method to insert element at a given position in the Linked List
  • removeByValue() : method to delete a element of a given value
  • removeByPosition() : method to delete a element at a given position
  • addToEnd() : method to add a node at the end
  • findMin() : method that returns the max element
  • findMax() : method that returns the min element
  • count() : method that returns the occurences of an element
  • pop() : pop method removes last element of the Linked List
  • tostring() : method that returns a string of all elements of the String
  • index() : method that returns index of a particular element
  • copy() : method that returns the copy of the list
  • clear() : method that clears the Linked List
  • toList() : method returns builtin List of python consisting of Elements of Linked List
  • toSet() : method returns builtin Set of python consisting of Elements of Linked List
  • sort() : method that sorts Linked List
  • reverse() : method that returns reversed linked list

stanford_algorithms_designandanalysis's People

Contributors

ddb95 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.