• 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

Find two non repeating elements in an array of repeating elements

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

Test Cases for Round Function

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

The Magic HackerEarth Nirvana solutions Hiring Challenge

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

Add Sub Multiply very large number stored as string

Sort Stack in place

Daughter’s Age VeryGood Puzzle

Flipkart Set 1 On Campus with Answers

Sort an array according to the order defined by another array

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

Handle duplicates in Binary Search Tree

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

Templates in C++

Cisco Hiring Event 21st – 22nd Feb 2015

C Program for TAIL command of UNIX

Client Server C program

Maximum occurred Smallest integer in n ranges

Word Break Problem

CodeChef’ RRCOPY

The greedy coins game Dynamic Programming

Find position of the only set bit

strtok()

Introduction To Number Theory ( Part 1 )

Maximum sum contiguous subarray of an Array

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

Print vertical sum of all the axis in the given binary tree

Mirror of Tree

Code Chef PRGIFT Solution

Copyright © 2026 · Genesis Framework · WordPress · Log in