nileshsaini.hashnode.devMax Binary Heap in JavaScriptMax Binary Heap: A complete binary tree where parent nodes are always larger than the child nodes. Each Parent has at most two child nodes. Parent is always greater than its children, but there are no guarantees between sibling nodes. Since its a...Jun 30, 2023·4 min read
nileshsaini.hashnode.devBinary Search Tree in JavaScript (Data Structures)A binary Search Tree is a node-based binary tree data structure. It has the following properties: Every parent node has at most two children. Every node to the left is always less than the parent node. Every node to the right is always greater tha...Jun 23, 2023·3 min read
nileshsaini.hashnode.devQueues in JavaScript (Data Structures)A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is ser...Jun 16, 2023·3 min read
nileshsaini.hashnode.devStack in JavaScript (Data Structures)A stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out). Implementing stack using arrays: Using the push/pop method (last in first...Jun 9, 2023·3 min read
nileshsaini.hashnode.devDoubly Linked List in Javascript (Data Structures)Almost identical to the singly-linked lists, except every node has another pointer, to the previous node. It provides more flexibility over singly-linked lists. Todos: 1. Push and Pop 2. Unshift and Shift 3. Get and Set 4. Insert and Remove Creating ...Jun 2, 2023·6 min read