• 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

Binary Tree in Java

CodeChef’ RRCOPY

Apriori algorithm C Code Data Mining

Find if a binary tree is height balanced ?

DFS (Depth First Search)

Fibonacci Hashing & Fastest Hashtable

Right view of Binary tree

N Petrol bunks or City arranged in circle. You have Fuel and distance between petrol bunks. Is it possible to find starting point so that we can travel all Petrol Bunks

Interfaces in C++ (Abstract Classes in C++)

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

Naurki.com Security Breach

How strtok() Works

Common Ancestor in a Binary Tree or Binary Search Tree

How Radix sort works

VMWare Openings

Generate next palindrome number

Find min element in Sorted Rotated Array (Without Duplicates)

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

Cisco Hiring Event 21st – 22nd Feb 2015

Implement a generic binary search algorithm for Integer Double String etc

Microsoft BING Interview Experience

Trie Dictionary

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

Printing Longest Common Subsequence

Difference between a LinkedList and a Binary Search Tree BST

Circular Linked List

Count number of ways to reach a given score in a game

SAP Hiring Off-Campus General Aptitude

Regular Expression Matching

Introduction To Number Theory ( Part 1 )

Copyright © 2026 · Genesis Framework · WordPress · Log in