• 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

Maximum occurred Smallest integer in n ranges

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

Given Set of words or A String find whether chain is possible from these words or not

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Microsoft BING Interview Experience

Naurki.com Security Breach

Password Predictor

LeetCode: Container With Most Water

CodeChef Code SGARDEN

Level order traversal in Spiral form

Edit Distance ( Dynamic Programming )

Closed Parentheses checker

Generic Object Oriented Stack with Template

Printing intermediate Integers between one element & next element of array

Apriori algorithm C Code Data Mining

Count Possible Decodings of a given Digit Sequence

LeetCode: Binary Tree Maximum Path Sum

Convert number to words java

Knight Tour Problem (Graph – Breadth First Search)

Client Server C program

Calculate price of parking from parking start end time prices

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

Number of Islands BFS/DFS

Python Dictionaries

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

Difference between a LinkedList and a Binary Search Tree BST

Trapping Rain Water

flattens 2 D linked list to a single sorted link list

Test Cases for Round Function

Copyright © 2026 · Genesis Framework · WordPress · Log in