• 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

Max 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

Generate next palindrome number

Find position of the only set bit

Coin Collection Dynamic Programming

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

DFS (Depth First Search)

How strtok() Works

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

Templates in C++

Convert number to words java

Best Java Book | Top Java Programming Book for Beginners

Level order traversal in Spiral form

VMWare SDEII Interview

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

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

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

Given a string, find the first character which is non-repetitive

SAP Interview Questions

strtok()

Print Power Set of a Set

Maximum occurred Smallest integer in n ranges

Sort Stack in place

ADOBE Aptitude C Language Test

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

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

Closed Parentheses checker

Amazon Interview Experience – SDE Chennai

How Radix sort works

Leetcode: Merge Intervals

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Mirror of Tree

Copyright © 2026 · Genesis Framework · WordPress · Log in