• 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

Generic Object Oriented Stack with Template

Singly linked list

BlueStone E-commerce Interview Experience

Amazon Interview Experience – SDE Chennai

Trie Dictionary

Sort an array according to the order defined by another array

Possible sizes of bus to carry n groups of friends

Diagonal Traversal of Binary Tree

Code Chef PRGIFT Solution

Given Set of words or A String find whether chain is possible from these words or not

Skiing on Mountains Matrix

TicTacToe Game As Asked in Flipkart

Knight Tour Problem (Graph – Breadth First Search)

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

Calculate price of parking from parking start end time prices

Print Power Set of a Set

Find an index i such that Arr [i] = i in array of n distinct integers sorted in ascending order.

Printing each word reverse in string

Best Java Book | Top Java Programming Book for Beginners

CodeChef’ RRCOPY

Binary Tree Isomorphic to each other

Longest Increasing Subsequence

Length of the longest substring without repeating characters

ADOBE Aptitude C Language Test

Find Nearest Minimum number in left side in O(n)

Generate next palindrome number

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

Printing intermediate Integers between one element & next element of array

Python List

Memory Efficient LinkedList

Copyright © 2026 · Genesis Framework · WordPress · Log in