stacks

command
v0.0.0-...-998dfd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2020 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

***************************************

* File Name : stkarray.go

* Creation Date : 03-09-2020

* Last Modified : Thursday 03 September 2020 10:21:12 AM

* Created By : Bhaskar Tallamraju

* Description: stack implementation using arrays * * Stack: its a data structure which works based on principle of last in first out (LIFO). * In computing world, stack data structure can be applied in many applications such as * parsing syntax of expressions and solving search problem. Push and pop are the operations * that are provided for insertion of an element into the stack and the removal of an element * from the stack. ****************************************

***************************************

* File Name : stkllist.go

* Creation Date : 02-09-2020

* Last Modified : Thursday 03 September 2020 10:19:46 AM

* Created By : Bhaskar Tallamraju

* Description: stack implementation using linkedlist * * Stack: its a data structure which works based on principle of last in first out (LIFO). * In computing world, stack data structure can be applied in many applications such as * parsing syntax of expressions and solving search problem. Push and pop are the operations * that are provided for insertion of an element into the stack and the removal of an element * from the stack. * Example : * topstack -> |newElement|next| -> |5|next| -> |7|next| -> |firstelement|next|->NULL * * topstack ptr points to the new element pushed and gets popped from there too. ****************************************

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL