Well-structured HackerRank Data Structures Problem Solutions (JavaScript) Table of Contents S.No Title Difficulty 1 Arrays - DS 2 2D Array - DS 3 Dynamic Array 4 Left Rotation 5 Sparse Arrays 6 Array Manipulation 7 Print the Elements of a Linked List 8 Insert a Node at the Tail of a Linked List 9 Insert a Node at the Head of a Linked List 10 Insert a Node at a Specific Position in a Linked List 11 Delete a Node 12 Print in Reverse 13 Reverse a Linked List 14 Compare two linked lists 15 Merge two sorted linked lists 16 Get Node Value 17 Delete duplicate-value nodes from a sorted linked list 18 Cycle Detection 19 Find Merge Point of Two Lists 20 Inserting a Node Into a Sorted Doubly Linked List 21 Reverse a doubly linked list 22 Tree: Preorder Traversal 23 Tree: Postorder Traversal 24 Tree: Inorder Traversal 25 Tree: Height of a Binary Tree 26 Tree: Top View 27 Tree: Level Order Traversal 28 Binary Search Tree : Insertion 29 Tree: Huffman Decoding 30 Binary Search Tree : Lowest Common Ancestor 31 Swap Nodes [Algo] 32 Is This a Binary Search Tree? 33 Maximum Element 34 Balanced Brackets 35 Equal Stacks 36 Game of Two Stacks 37 Largest Rectangle 38 Simple Text Editor 39 Queue using Two Stacks 40 Castle on the Grid 41 Down to Zero II 42 Truck Tour 43 QHEAP1 44 Jesse and Cookies 45 Find the Running Median 46 Merging Communities 47 Components in a graph 48 Contacts 49 No Prefix Set 50 Waiter MIT License Copyright (c) 2025 Anuj Singh