• 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

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

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

strtok()

Maximum occurred Smallest integer in n ranges

Client Server C program

Find if a binary tree is height balanced ?

Cisco Hiring Event 21st – 22nd Feb 2015

How Radix sort works

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

Python Array String

Find the kth number with prime factors 3, 5 and 7

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

Templates in C++

Reliance Jio Software Developer Interview Experience

C++ OOPs Part1

Leetcode: Edit Distance

Print Power Set of a Set

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

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

Given a float number convert it into the string WITHOUT using any inbuilt Function

VMWare Openings

Max Sum in circularly situated Values

Stock Buy Sell to Maximize Profit

CodeChef’ RRCOPY

Facebook Interview Question : Interleave List

C Program for TAIL command of UNIX

Find Percentage of Words matching in Two Strings

LeetCode: Binary Tree Maximum Path Sum

Printing each word reverse in string

Python String and numbers

Copyright © 2026 · Genesis Framework · WordPress · Log in