Data Structure: Singly Linked List

Summary Name Singly Linked List Type Linked List Use cases Related Data Structures Doubly Linked ListTree Implementations Definition A singly linked list is a list of items, where each element has reference to the next element. Elements do not have info of the previous element. So we can only go to the next element while … Read more

Data Structure: Singly Linked List in PHP

A singly linked list is a list of items, where each element has reference to the next element. Elements do not have info on the previous element. So we can only go to the next element while traversing a singly linked list. In this article, we are discussing in detail, the implementation of Singly Linked List in PHP.

Data Structure: Breadth First Search(BFS) in JavaScript and TypeScript

NOTE In this article, we are discussing in detail, the implementation of Breadth First Search(BFS) JavaScript and TypeScript. Check the link below to check the details of Breadth First Search(BST)- Step #1: Node Class Step #2: BfsTree Class Step #3: Insert Method Step #2: bfs Method Full Source Code Demo Output: Testing Time Complexity Operation … Read more

Data Structure: Stack

Data Structures

Stack is a data structure that has only one end for performing operations. All operations can be performed at the head, be it adding(pushing) element or removing(popping) element. Stack follows the LIFO – Last In First Out principle, so the item which is inserted at the last, is removed(popped) first.