• 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 min element in Sorted Rotated Array (With Duplicates)

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

Check if an array has duplicate numbers in O(n) time and O(1) space

Max Sum in circularly situated Values

Flipkart SDET Interview Experience

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

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

Edit Distance ( Dynamic Programming )

SAP Off Campus Hiring_ March 2015 Computer Skills

BFS (Breath First Search)

Minimum insertions to form a palindrome

Sequence Finder Dynamic Programming

Test Cases for Round Function

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

Closed Parentheses checker

Python Array String

strtok()

Fibonacci Hashing & Fastest Hashtable

Leetcode: Merge Intervals

Leetcode: Edit Distance

Maximum size of square sub matrix with all 1’s in a binary matrix

Urban Ladder Written Test.

Binary Tree Isomorphic to each other

Practo Hiring Experience

Find position of the only set bit

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

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

Trapping Rain Water

Regular Expression Matching

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

Copyright © 2026 · Genesis Framework · WordPress · Log in