• 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

Mirror of Tree

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

Find the number ABCD such that when multipled by 4 gives DCBA.

Introduction To Number Theory ( Part 1 )

VMWare Openings

Difference between a LinkedList and a Binary Search Tree BST

Add Sub Multiply very large number stored as string

Flipkart SDET Interview Experience

Stickler thief

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

SAP Hiring Off-Campus General Aptitude

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

Level order traversal in Spiral form

flattens 2 D linked list to a single sorted link list

How Radix sort works

Urban Ladder Written Test.

Reliance Jio Software Developer Interview Experience

C Program for TAIL command of UNIX

Find if two rectangles overlap

Trapping Rain Water

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

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

Check Binary Tree is Binary Search Tree or not

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

Amazon Interview On-Campus For Internship – 1

Print all nodes that are at distance k from a leaf node

Linked List V/S Binary Search Tree

Implement a generic binary search algorithm for Integer Double String etc

1014 Practice Question of New GRE – Princeton

TicTacToe Game As Asked in Flipkart

Copyright © 2026 · Genesis Framework · WordPress · Log in