• 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

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

Doubly linked list

TicTacToe Game As Asked in Flipkart

Printing intermediate Integers between one element & next element of array

Find the element that appears once others appears thrice

Coin Collection Dynamic Programming

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

LeetCode : Word Search

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

Leetcode: Edit Distance

LeetCode: Container With Most Water

Longest Increasing Subsequence

Check Binary Tree is Binary Search Tree or not

How strtok() Works

Amazon Interview On-Campus For Internship – 1

Python String and numbers

LeetCode: Binary Tree Maximum Path Sum

Find the kth number with prime factors 3, 5 and 7

Apriori algorithm C Code Data Mining

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

Length of the longest substring without repeating characters

Count Possible Decodings of a given Digit Sequence

Find min element in Sorted Rotated Array (Without Duplicates)

Leetcode: Merge Intervals

Given Set of words or A String find whether chain is possible from these words or not

Test Cases for Round Function

Maximum size of square sub matrix with all 1’s in a binary matrix

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

Calculate price of parking from parking start end time prices

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 ?

Copyright © 2026 · Genesis Framework · WordPress · Log in