• 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

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

TicTacToe Game As Asked in Flipkart

Maximum sum contiguous subarray of an Array

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

How strtok() Works

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

Count Possible Decodings of a given Digit Sequence

Mirror of Tree

DFS (Depth First Search)

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

FizzBuzz Solution C C++

Implement LRU Cache

Binary Tree in Java

Length of the longest substring without repeating characters

Find next greater number with same set of digits

HackeEarth Flipkart’s Drone

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

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

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

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

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

Level order traversal in Spiral form

Cisco Hiring Event 21st – 22nd Feb 2015

ADOBE Aptitude C Language Test

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

The greedy coins game Dynamic Programming

Print vertical sum of all the axis in the given binary tree

Stock Buy Sell to Maximize Profit

C Program for TAIL command of UNIX

Generic Object Oriented Stack with Template

Copyright © 2026 · Genesis Framework · WordPress · Log in