• 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

Max 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

Python Dictionaries

Naurki.com Security Breach

Amazon Interview On-Campus For Internship – 1

LeetCode : Word Search

Given a string, find the first character which is non-repetitive

Closed Parentheses checker

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

Generate largest number arranging a no. of given non negative integer numbers

Minimum insertions to form a palindrome

Maximum occurred Smallest integer in n ranges

Amazon Interview Experience – SDE Chennai

Coin Collection Dynamic Programming

Longest Increasing Subsequence

25 horses 5 tracks Find 3 fastest puzzle

Facebook Interview Question : Interleave List

Serialise Deserialise N-ary Tree

Difference between a LinkedList and a Binary Search Tree BST

C++ OOPs Part1

Reliance Jio Software Developer Interview Experience

1014 Practice Question of New GRE – Princeton

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

Sort an array according to the order defined by another array

Doubly linked list

Print all nodes that are at distance k from a leaf node

C Program for TAIL command of UNIX

Daughter’s Age VeryGood Puzzle

CodeChef’ RRCOPY

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

Count number of ways to reach a given score in a game

Copyright © 2026 · Genesis Framework · WordPress · Log in