• 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

Binary Tree in Java

K’th Largest Element in BST when modification to BST is not allowed

Cisco Hiring Event 21st – 22nd Feb 2015

Maximum sum contiguous subarray of an Array

Printing intermediate Integers between one element & next element of array

Stickler thief

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

Right view of Binary tree

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

Possible sizes of bus to carry n groups of friends

Test Cases for Round Function

Handle duplicates in Binary Search Tree

Check Binary Tree is Binary Search Tree or not

25 horses 5 tracks Find 3 fastest puzzle

Daughter’s Age VeryGood Puzzle

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

Closed Parentheses checker

flattens 2 D linked list to a single sorted link list

The Magic HackerEarth Nirvana solutions Hiring Challenge

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

Diagonal Traversal of Binary Tree

Word Break Problem

BFS (Breath First Search)

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

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

Flipkart Set 1 On Campus with Answers

LeetCode: Container With Most Water

Difference between a LinkedList and a Binary Search Tree BST

Flipkart SDET Interview Experience

Copyright © 2026 · Genesis Framework · WordPress · Log in