• 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

Find loop in Singly linked list

C Program for TAIL command of UNIX

Walmart Labs Interview Experience

Best Java Book | Top Java Programming Book for Beginners

The Magic HackerEarth Nirvana solutions Hiring Challenge

Apriori algorithm C Code Data Mining

Possible sizes of bus to carry n groups of friends

Maximum sum contiguous subarray of an Array

TicTacToe Game As Asked in Flipkart

FizzBuzz Solution C C++

Edit Distance ( Dynamic Programming )

Flipkart SDET Interview Experience

Max Sum in circularly situated Values

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

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

Singly linked list

Implement a generic binary search algorithm for Integer Double String etc

1014 Practice Question of New GRE – Princeton

The greedy coins game Dynamic Programming

CodeChef Code SGARDEN

Get Minimum element in O(1) from input numbers or Stack

Length of the longest substring without repeating characters

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

Common Ancestor in a Binary Tree or Binary Search Tree

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

Microsoft BING Interview Experience

Difference between a LinkedList and a Binary Search Tree BST

Maximum difference between two elements s.t larger element appears after the smaller number

Number of Islands BFS/DFS

C++ OOPs Part1

Copyright © 2025 · Genesis Framework · WordPress · Log in