• 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

Find if two rectangles overlap

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

Search element in a matrix with all rows and columns in sorted order

Python String and numbers

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

Reverse a Linked List in groups of given size

Leetcode: Edit Distance

Serialise Deserialise N-ary Tree

Python Dictionaries

Binary Tree in Java

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Skiing on Mountains Matrix

Adobe Interview Questions 8 month Exp

C++ OOPs Part1

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

Naurki.com Security Breach

Edit Distance ( Dynamic Programming )

Binary Tree Isomorphic to each other

Trie Dictionary

Stickler thief

CodeChef Code SGARDEN

Cisco Hiring Event 21st – 22nd Feb 2015

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

Leetcode: Merge Intervals

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

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

Password Predictor

Flipkart SDET Interview Experience

Print Power Set of a Set

Knight Tour Problem (Graph – Breadth First Search)

Copyright © 2025 · Genesis Framework · WordPress · Log in