• 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

Edit Distance ( Dynamic Programming )

1014 Practice Question of New GRE – Princeton

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

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.

CodeChef Code SGARDEN

Find next greater number with same set of digits

Binary Tree in Java

Python List

Word Break Problem

Regular Expression Matching

SAP Off Campus Hiring_ March 2015 Verbal Skills

Check if an array has duplicate numbers in O(n) time and O(1) space

Implement a generic binary search algorithm for Integer Double String etc

Password Predictor

Best Java Book | Top Java Programming Book for Beginners

C++ OOPs Part2

Find two non repeating elements in an array of repeating elements

Printing intermediate Integers between one element & next element of array

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

Handle duplicates in Binary Search Tree

Possible sizes of bus to carry n groups of friends

Diagonal Traversal of Binary Tree

C Program for TAIL command of UNIX

Walmart Labs Interview Experience

BFS (Breath First Search)

ADOBE Aptitude C Language Test

Naurki.com Security Breach

Templates in C++

Copyright © 2026 · Genesis Framework · WordPress · Log in