• 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

Interfaces in C++ (Abstract Classes in C++)

Search element in a matrix with all rows and columns in sorted order

HackeEarth Flipkart’s Drone

Urban Ladder Written Test.

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Coin Collection Dynamic Programming

Trie Dictionary

Generate next palindrome number

Print Power Set of a Set

SAP Interview Questions

LeetCode: Container With Most Water

Best Java Book | Top Java Programming Book for Beginners

The greedy coins game Dynamic Programming

VMWare Openings

Find next greater number with same set of digits

Check Binary Tree is Binary Search Tree or not

Naurki.com Security Breach

Find shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

Cisco Hiring Event 21st – 22nd Feb 2015

DFS (Depth First Search)

Python Dictionaries

Amazon Interview On-Campus For Internship – 1

Find Percentage of Words matching in Two Strings

C++ OOPs Part2

SAP Off Campus Hiring_ March 2015 Verbal Skills

LeetCode: Binary Tree Maximum Path Sum

Regular Expression Matching

TicTacToe Game As Asked in Flipkart

strtok()

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

Copyright © 2025 · Genesis Framework · WordPress · Log in