Riyaz Nabiyullariyaz-blog.hashnode.dev·Jul 15, 2024Data Structures - Java: Syntax, Use Case, Time and Space Complexity1. Arrays Syntax: // Declaration and initialization int[] array = new int[10]; int[] array = {1, 2, 3, 4, 5}; // Accessing elements int element = array[0]; // Modifying elements array[1] = 10; Use Cases: Fixed-size collections, fast access by inde...DiscussDSA-Javadata structures
Abhilietcode.hashnode.dev·Jun 24, 2024Kth Largest Element in an Array (Medium)Given an integer array nums and an integer k, return thek<sup>th</sup>largest element in the array. Note that it is the k<sup>th</sup> largest element in the sorted order, not the k<sup>th</sup> distinct element. Can you solve it without sorting? Exa...DiscussHeap / Priority Queueheap
Anushka Joshiloops.hashnode.dev·May 17, 2024Heap SortHeap sort processes the elements by creating the min-heap or max-heap using the elements of the given array. Min-heap or max-heap represents the ordering of array in which the root element represents the minimum or maximum element of the array. Heap ...DiscussIntroduction to Data structures and algorithms2Articles1Week
Robin Khileryrobinkhilery.hashnode.dev·Dec 20, 2023Understanding Heaps: A Deep Dive into Data StructuresHave you ever wondered how priority queues efficiently manage tasks in your computer’s operating system? Or how a database quickly retrieves the maximum or minimum record from a large dataset? The secret behind these operations is a fascinating data ...Discuss·1 like·36 readswebdev
David Osharedavidoshare.hashnode.dev·Nov 14, 2023Sorting Algorithms Explained: Conquering Chaos with Merge Sort, Quick Sort, and HeapsortData, the lifeblood of modern computing, often comes in a disorganized mess. Sorting algorithms play a crucial role in bringing order to this chaos. Python offers various built-in sorting functions, but understanding the underlying algorithms empower...DiscussPython
Sawan Badhwarsawan1367.hashnode.dev·Nov 11, 2023All about Heaps in DSAI am having fun on my DSA journey of the 100-Day challenge. Today, I encountered an interesting topic i.e. Heaps. Heaps are nothing different but the Complete Binary Tree that comes with the heap order property. In this concept, I studied the inserti...Discuss·10 likesDSA
Tanmaytanmay4l.hashnode.dev·Sep 24, 2023Learn About Heaps: A Guide to Coding InterviewsIntroduction: In coding interviews, understanding heaps is essential. Heaps are data structures used for efficiently retrieving the smallest or largest elements from a set of data. In this blog post, we will explore what heaps are, how they work, the...Discuss·10 likesHeap sort
Ayesha Irshadayeshairshad.hashnode.dev·Aug 15, 2023Heap Sort and Counting Sort: Unveiling Efficient Sorting TechniquesSorting is a fundamental operation in computer science, paving the way for organized data retrieval and analysis. Among the array of sorting algorithms, Heap Sort and Counting Sort stand out for their unique approaches to tackling sorting challenges....DiscussSorting Chronicles: Navigating Algorithms Through SeriesHeap sort
Keerthivardhankeerthivardhan.hashnode.dev·Jul 6, 2023Things To Remember in Heap SortBy the end of this article, you will have the answers to these questions Why should I learn Heap sort what should I remember in the context of CP WHY? The major advantage of heap sort is, we can sort the given array in place so space complexity...Discuss·180 readsJava
Shagun MengiforShagun Mengishagunmengi.hashnode.dev·Jun 26, 2023Unveiling HeapIntroduction Heap is a complete binary tree Data Structure ie every node should have a value greater than or equal to its descendants. Depending on the type of heap there are Max Heap or Min Heap. Max Heap can be defined as a binary tree where the ro...Discuss·55 readsheap