• 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

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Generate next palindrome number

Sort Stack in place

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

Length of the longest substring without repeating characters

Count Possible Decodings of a given Digit Sequence

Client Server C program

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

Singly linked list

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

FizzBuzz Solution C C++

Wrong Directions given find minimum moves so that he can reach to the destination

Reversal of LinkedList

Memory Efficient LinkedList

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

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

Mirror of Tree

Templates in C++

Implement LRU Cache

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

Spanning Tree

The greedy coins game Dynamic Programming

Find if a binary tree is height balanced ?

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

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 ?

Introduction To Number Theory ( Part 1 )

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

Sort an array according to the order defined by another array

Reliance Jio Software Developer Interview Experience

flattens 2 D linked list to a single sorted link list

Copyright © 2026 · Genesis Framework · WordPress · Log in