• 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

Microsoft BING Interview Experience

Sort Stack in place

Find min element in Sorted Rotated Array (Without Duplicates)

Python String and numbers

N Petrol bunks or City arranged in circle. You have Fuel and distance between petrol bunks. Is it possible to find starting point so that we can travel all Petrol Bunks

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

Handle duplicates in Binary Search Tree

Difference between a LinkedList and a Binary Search Tree BST

C++ OOPs Part1

Reversal of LinkedList

Implement a generic binary search algorithm for Integer Double String etc

SAP Off Campus Hiring_ March 2015 Sample Questions

Stickler thief

LeetCode : Word Search

Adobe Interview Questions 8 month Exp

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

Client Server C program

Python List

Password Predictor

Printing each word reverse in string

Memory Efficient LinkedList

Find if a binary tree is height balanced ?

Find min element in Sorted Rotated Array (With Duplicates)

Connect n ropes with minimum cost

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

Find next greater number with same set of digits

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

VMWare Openings

C Program for TAIL command of UNIX

Copyright © 2026 · Genesis Framework · WordPress · Log in