• 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

CodeChef Code SGARDEN

Fibonacci Hashing & Fastest Hashtable

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Sequence Finder Dynamic Programming

Printing intermediate Integers between one element & next element of array

Find Percentage of Words matching in Two Strings

Templates in C++

Count Possible Decodings of a given Digit Sequence

SAP Hiring Off-Campus General Aptitude

The greedy coins game Dynamic Programming

Maximum difference between two elements s.t larger element appears after the smaller number

Maximum size of square sub matrix with all 1’s in a binary matrix

Amazon Interview Experience – SDE Chennai

Python List

Number of Islands BFS/DFS

Skiing on Mountains Matrix

Find min element in Sorted Rotated Array (Without Duplicates)

Leetcode: Merge Intervals

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

1014 Practice Question of New GRE – Princeton

HackeEarth Flipkart’s Drone

Spanning Tree

Flipkart Set 1 On Campus with Answers

Max Sum in circularly situated Values

Level order traversal in Spiral form

Python Array String

Find the kth number with prime factors 3, 5 and 7

Practo Hiring Experience

Get Minimum element in O(1) from input numbers or Stack

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

Copyright © 2025 · Genesis Framework · WordPress · Log in