---
title: "Discussion on \"DSA Day#3: Top k frequent elements, MinHeap Approach explained\" | Hashnode"
description: "Discussion on \"DSA Day#3: Top k frequent elements, MinHeap Approach explained\". #Problem : Top k freqeuent element\n#Problem statement: Given an integer array nums and an integer k, return the k most frequent elements within the array.\n#Clarify Requirement:\n\nIs the input array empty?\n\nCan k be greater than the array length?\n\nuniq..."
url: "https://hashnode.com/posts/dsa-day3-top-k-frequent-elements-minheap-approach-explained/69095a31abaee98eda180937"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DSA Day#3: Top k frequent elements, MinHeap Approach explained](https://amit01.hashnode.dev/dsa-day3-top-k-frequent-elements-minheap-approach-explained?utm_source=hashnode&utm_medium=feed)

#Problem : Top k freqeuent element #Problem statement: Given an integer array nums and an integer k, return the k most frequent elements within the array. #Clarify Requirement: Is the input array empty? Can k be greater than the array length? uniq...

Nov 4, 2025 · 2 min read · amit01.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#java](https://hashnode.com/tag/java)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#placements](https://hashnode.com/tag/placements)
-   [#interview-preparations](https://hashnode.com/tag/interview-preparations)
-   [#problem-solving](https://hashnode.com/tag/problem-solving)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Amit Kumar](https://hashnode.com/@dev-Amit)

@dev-Amit · India

  
[View profile](https://hashnode.com/@dev-Amit)

Sharing my insights about dsa,java,tech news, interview prepration

Hi, I'm a backend software engineer with over 2+ years of industry experience. I have built a large, scalable, and distributed fintech-backed system for one of India's top banks. I like to do brainstorming of real-world problems and try to solve them using a programming language.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
