• 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

The greedy coins game Dynamic Programming

Find the element that appears once others appears thrice

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

Doubly linked list

Singly linked list

Implement a generic binary search algorithm for Integer Double String etc

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

Convert number to words java

Length of the longest substring without repeating characters

VMWare SDEII Interview

Generic Object Oriented Stack with Template

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

Skiing on Mountains Matrix

C Program for TAIL command of UNIX

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Printing intermediate Integers between one element & next element of array

Print vertical sum of all the axis in the given binary tree

Regular Expression Matching

Subset Sum Problem Dynamic programming

Diagonal Traversal of Binary Tree

Hackerearth : Counting Subarrays

Python List

simple sql injection

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

Mirror of Tree

How strtok() Works

Maximum path sum between two leaves

Add Sub Multiply very large number stored as string

Binary Tree in Java

LeetCode: Container With Most Water

Copyright © 2025 · Genesis Framework · WordPress · Log in