• 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

Regular Expression Matching

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Maximum occurred Smallest integer in n ranges

Hackerearth : Counting Subarrays

How strtok() Works

Flipkart SDET Interview Experience

System Design: Designing a LLD for Hotel Booking

FizzBuzz Solution C C++

Doubly linked list

Maximum of all subarrays of size k

Word Break Problem

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

Python List

Subset Sum Problem Dynamic programming

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

Find min element in Sorted Rotated Array (With Duplicates)

Python String and numbers

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

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

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

Find and print longest consecutive number sequence in a given sequence in O(n)

Naurki.com Security Breach

Cisco Hiring Event 21st – 22nd Feb 2015

Test Cases for Round Function

Print all nodes that are at distance k from a leaf node

Mirror of Tree

Skiing on Mountains Matrix

The greedy coins game Dynamic Programming

Memory Efficient LinkedList

Find an index i such that Arr [i] = i in array of n distinct integers sorted in ascending order.

Copyright © 2026 · Genesis Framework · WordPress · Log in