• 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

VMWare Openings

Fibonacci Hashing & Fastest Hashtable

Apriori algorithm C Code Data Mining

Maximum sum contiguous subarray of an Array

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

Minimum insertions to form a palindrome

CodeChef’ RRCOPY

Sort an array according to the order defined by another array

Number of Islands BFS/DFS

Skiing on Mountains Matrix

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

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

The Magic HackerEarth Nirvana solutions Hiring Challenge

Maximum of all subarrays of size k

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

Find the smallest window in a string containing all characters of another string

DFS (Depth First Search)

Check Binary Tree is Binary Search Tree or not

In Given LinkedList Divide LL in N Sub parts and delete first K nodes of each part

Templates in C++

Calculate price of parking from parking start end time prices

Diagonal Traversal of Binary Tree

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

Level order traversal in Spiral form

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

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 ?

How strtok() Works

Mirror of Tree

Connect n ropes with minimum cost

LeetCode: Binary Tree Maximum Path Sum

Copyright © 2026 · Genesis Framework · WordPress · Log in