/dataStructures-javascript

Implemented Data Structured in javascript.

Primary LanguageJavaScript

dataStructures-javascript

Implementnig Data Structures in javascript. 12|JAN - stacks implemented with all the helper mehtods

14|JAN - Queues implemented with all the helper mehtods - enqueue(element): Adds an element to the end of the queue. - dequeue(): Removes and returns the front element of the queue. - front(): Returns the front element of the queue without removing it. - rear(): Returns the last element of the queue. - size(): Returns the number of elements in the queue. - isEmpty(): Checks if the queue is empty. - print(): Displays the elements of the queue.