• 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

Min 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

Fibonacci Hashing & Fastest Hashtable

Number of Islands BFS/DFS

System Design: Designing a LLD for Hotel Booking

write a c program that given a set a of n numbers and another number x determines whether or not there exist two elements in s whose sum is exactly x

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

SAP Hiring Off-Campus General Aptitude

How strtok() Works

ADOBE Aptitude C Language Test

Daughter’s Age VeryGood Puzzle

Print Power Set of a Set

Spanning Tree

VMWare SDEII Interview

Find and print longest consecutive number sequence in a given sequence in O(n)

Find Pythagorean Triplets in an array in O(N)

Maximum path sum between two leaves

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Python Array String

Possible sizes of bus to carry n groups of friends

HackeEarth Flipkart’s Drone

Find Percentage of Words matching in Two Strings

SAP Interview Questions

Stock Buy Sell to Maximize Profit

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Implement LRU Cache

Find if a binary tree is height balanced ?

The Magic HackerEarth Nirvana solutions Hiring Challenge

Templates in C++

Python Dictionaries

Serialise Deserialise N-ary Tree

Search element in a matrix with all rows and columns in sorted order

Copyright © 2026 · Genesis Framework · WordPress · Log in