• 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

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

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

Leetcode: Edit Distance

Python String and numbers

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

Reverse a Linked List in groups of given size

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

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

Doubly linked list

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

Binary Tree Isomorphic to each other

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

Adobe Interview Questions 8 month Exp

Level order traversal in Spiral form

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

Stock Buy Sell to Maximize Profit

Subset Sum Problem Dynamic programming

Add Sub Multiply very large number stored as string

Find shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

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

Sort Stack in place

Trapping Rain Water

LeetCode: Container With Most Water

Fibonacci Hashing & Fastest Hashtable

Generate largest number arranging a no. of given non negative integer numbers

Find next greater number with same set of digits

K’th Largest Element in BST when modification to BST is not allowed

Microsoft BING Interview Experience

Password Predictor

Copyright © 2026 · Genesis Framework · WordPress · Log in