Rohit Gawanderohit253.hashnode.dev·Sep 25, 2024Chapter 34: Trie in Java - A Comprehensive Guide (Continuing Java With DSA Series)In this chapter, we dive into one of the most versatile and efficient data structures used in various string manipulation problems – the Trie. We'll cover the basics of what a Trie is, how it works, and walk through its common applications like inser...DiscussDSA(Data Structure and Algorithm) In JAVATrie
Namra Ajmaldatanerd.hashnode.dev·Aug 24, 2024Step-by-Step Guide to Binary Tree Implementation in C++What is a Binary tree? A binary tree is tree data structure in which each node can have at most two child nodes referred to as the left and right child. The two types of binary trees on which we are going to focus today are full and complete binary ...DiscussGeneral Programming
Sushil Kumar Mishrasushilsblog.hashnode.dev·Aug 11, 2024Step-by-Step Guide to Linked List ImplementationIntroduction to Linked Lists Linked lists are a fundamental data structure in computer science, allowing for efficient insertion and deletion of elements. Unlike arrays, linked lists do not require a contiguous block of memory, making them more flexi...Discuss·2 likesarray
Chetan Dattachetan77.hashnode.dev·Jul 28, 2024LL 3 - Doubly Linked ListConstruction of Doubly Linked List public static Node constructDll(int arr[]){ Node head = new Node(0); Node temp = head; for (int num: arr){ Node newNode = new Node(num); temp.next = newNode; newNode.prev = temp;...DiscussLeetcodelinked list
Chetan Dattachetan77.hashnode.dev·Jul 27, 2024LL 1 - Single Linked ListConstruction of Linked List Input: n = 5 arr = [1,2,3,4,5] Output: 1 2 3 4 5 Explanation: Linked list for the given array will be 1->2->3->4->5 Here, the head points to a dummy which doesn't store anything. Later, when we return the new head pointer...DiscussLeetcodelinked list
Pranjit Medhipranjitmedhi.hashnode.dev·Aug 27, 2023Inserting an element in an Array at Any PositionArrays are fixed-size data structures that can contain only homogeneous elements. Inserting an element in an array is one of the basic operations done in an array.To insert an element at the end of an array is easy we can directly insert the element ...Discussarray
Jayesh Batrajayeshbatra.hashnode.dev·Apr 3, 2023Program to insert an element at the Bottom of a StackSo hey, in this article we are going to learn to insert an element at the Bottom of a Stack Question Link: https://practice.geeksforgeeks.org/problems/insert-an-element-at-the-bottom-of-a-stack/1 Question Explanation Inserting an element at the botto...Discuss·594 readsinsertion