• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

Min Heap

Get K Max and Delete K Max in stream of incoming integers

March 25, 2014 by Dhaval Dave

Get K Max and Delete K Max in stream of Incoming Integers

Solution 1 : Using Min Heap
Algorithm :

1) Keep a Min & Max Heap of K size
2) Store first K elements 
… Read More

Filed Under: Adobe Interview Questions, Amazon Interview Question, Interview Questions, Microsoft Interview Questions, problem Tagged With: Linked List, Max Heap, Min Heap

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

BFS (Breath First Search)

Doubly linked list

Search element in a matrix with all rows and columns in sorted order

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

Stock Buy Sell to Maximize Profit

Daughter’s Age VeryGood Puzzle

Hackerearth : Counting Subarrays

Serialise Deserialise N-ary Tree

C++ OOPs Part2

Find the number ABCD such that when multipled by 4 gives DCBA.

SAP Off Campus Hiring_ March 2015 Computer Skills

Practo Hiring Experience

Leetcode: Edit Distance

Python Dictionaries

Sort Stack in place

25 horses 5 tracks Find 3 fastest puzzle

K’th Largest Element in BST when modification to BST is not allowed

Flipkart SDET Interview Experience

Test Cases for Round Function

Possible sizes of bus to carry n groups of friends

Generic Object Oriented Stack with Template

Binary Tree in Java

1014 Practice Question of New GRE – Princeton

Walmart Labs Interview Experience

Wrong Directions given find minimum moves so that he can reach to the destination

Find two non repeating elements in an array of repeating elements

Coin Collection Dynamic Programming

Check if an array has duplicate numbers in O(n) time and O(1) space

Maximum size of square sub matrix with all 1’s in a binary matrix

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

Copyright © 2025 · Genesis Framework · WordPress · Log in