项目作者: patilharshal16

项目描述 :
Computer science data structures and algorithms implementation from scratch
高级语言: Java
项目地址: git://github.com/patilharshal16/data-structures.git
创建时间: 2021-05-29T14:22:57Z
项目社区:https://github.com/patilharshal16/data-structures

开源协议:

下载


Data Structures and Algorithms

Computer science data structures and algorithms implementation from scratch

Stack (Last In First Out)

Stack) is an abstract data type that serves as a collection of elements, with two main principal operations:

  • Push, which adds an element to the collection, and
  • Pop, which removes the most recently added element that was not yet removed.

Useful stack visualization using array

Queue (First In First Out)

Queue) is a collection of entities that are maintained in a sequence and can be modified by the addition of entities at one end of the sequence and the removal of entities from the other end of the sequence. By convention, the end of the sequence at which elements are added is called the back, tail, or rear of the queue, and the end at which elements are removed is called the head or front of the queue, analogously to the words used when people line up to wait for goods or services.

Useful queue visualization using array