• 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

Maximum sum contiguous subarray of an Array

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

Reverse a Linked List in groups of given size

Implement LRU Cache

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

Singly linked list

Memory Efficient LinkedList

Find Pythagorean Triplets in an array in O(N)

Python Dictionaries

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

ADOBE Aptitude C Language Test

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

Cisco Hiring Event 21st – 22nd Feb 2015

Check Binary Tree is Binary Search Tree or not

Find if two rectangles overlap

Code Chef PRGIFT Solution

Handle duplicates in Binary Search Tree

Client Server C program

Binary Tree in Java

CodeChef’ RRCOPY

Test Cases for Round Function

Best Java Book | Top Java Programming Book for Beginners

Reversal of LinkedList

Level order traversal in Spiral form

Stickler thief

Common Ancestor in a Binary Tree or Binary Search Tree

simple sql injection

Python String and numbers

Stock Buy Sell to Maximize Profit

Implement a generic binary search algorithm for Integer Double String etc

Copyright © 2026 · Genesis Framework · WordPress · Log in