• 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

Edit Distance ( Dynamic Programming )

Sequence Finder Dynamic Programming

Facebook Interview Question : Interleave List

Naurki.com Security Breach

Sort an array according to the order defined by another array

Serialise Deserialise N-ary Tree

BFS (Breath First Search)

Printing Longest Common Subsequence

Code Chef PRGIFT Solution

Advanced SQL Injection

Minimum insertions to form a palindrome

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

Reliance Jio Software Developer Interview Experience

Given a float number convert it into the string WITHOUT using any inbuilt Function

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

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

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

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

Find two non repeating elements in an array of repeating elements

How Radix sort works

flattens 2 D linked list to a single sorted link list

Practo Hiring Experience

Coin Collection Dynamic Programming

Implement LRU Cache

Connect n ropes with minimum cost

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

ADOBE Aptitude C Language Test

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

simple sql injection

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

Copyright © 2025 · Genesis Framework · WordPress · Log in