parveensharma0909285

parveensharma0909285

Software Engineer

30Posts
2Courses

Articles

Design a Data Stream Median Finder Using Heaps

In this blog post, we'll explore how to efficiently design a data stream median finder using heaps. We will discuss the fundamental con...

author

Parveen

16/11/2024

Frequency Sort Using Priority Queue

In this blog, we will explore the concept of frequency sorting using priority queues, a fundamental data structure that helps manage el...

Sort a Nearly Sorted Array Using Heap

Sorting an array can often be a straightforward task, but what happens when the array is nearly sorted? This blog explores how to utili...

Sliding Window Maximum Using Priority Queue

In this blog post, we will dive into the Sliding Window Maximum problem and explore how to efficiently solve it using a priority queue ...

author

Parveen

16/11/2024

Minimum Cost to Connect Ropes Using Heap

In this blog post, we will delve into the Minimum Cost to Connect Ropes problem using heaps, exploring efficient algorithms and providi...

Finding the Median of a Stream Using Heaps

In this blog post, we will dive into the concept of calculating the median of a stream of numbers using heaps. We will utilize a combin...

Top K Frequent Elements Using Heap in Java

In this blog post, we’ll explore an efficient algorithm to find the top K frequent elements in a list using a heap data structure. This...

author

Parveen

16/11/2024

Merge K Sorted Arrays Using Priority Queue

In this blog post, we will explore an efficient algorithm for merging k sorted arrays using a priority queue in Java. This approach not...

Kth Largest and Smallest Elements Using Heap

In this blog post, we will explore how to efficiently find the Kth largest and Kth smallest elements in an array using heaps. This tech...

author

Parveen

16/11/2024

Custom Comparator for Priority Queue in Java

In Java, the PriorityQueue class allows us to create a priority queue where elements are ordered based on their natural ordering or by ...