• 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

Min 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

Advanced SQL Injection

Number of Islands BFS/DFS

Doubly linked list

Level order traversal in Spiral form

Maximum sum contiguous subarray of an Array

How Radix sort works

Maximum path sum between two leaves

Convert number to words java

25 horses 5 tracks Find 3 fastest puzzle

simple sql injection

Skiing on Mountains Matrix

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

Edit Distance ( Dynamic Programming )

SAP Off Campus Hiring_ March 2015 Verbal Skills

Binary Tree in Java

Find two non repeating elements in an array of repeating elements

Serialise Deserialise N-ary Tree

Find min element in Sorted Rotated Array (Without Duplicates)

Python String and numbers

Closed Parentheses checker

Find the smallest window in a string containing all characters of another string

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

Linked List V/S Binary Search Tree

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

Difference between a LinkedList and a Binary Search Tree BST

Reversal of LinkedList

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

Mirror of Tree

Count number of ways to reach a given score in a game

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 © 2026 · Genesis Framework · WordPress · Log in