• 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

Sort Stack in place

Linked List V/S Binary Search Tree

Find Pythagorean Triplets in an array in O(N)

Templates in C++

Subset Sum Problem Dynamic programming

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

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

Search element in a matrix with all rows and columns in sorted order

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

Cisco Hiring Event 21st – 22nd Feb 2015

Find if a binary tree is height balanced ?

flattens 2 D linked list to a single sorted link list

Leetcode: Merge Intervals

Puzzle : 100 doors in a row Visit and Toggle the door. What state the door will be after nth pass ?

Password Predictor

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

Printing each word reverse in string

Edit Distance ( Dynamic Programming )

Amazon Interview Experience – SDE Chennai

Reliance Jio Software Developer Interview Experience

Reversal of LinkedList

Singly linked list

LeetCode: Binary Tree Maximum Path Sum

1014 Practice Question of New GRE – Princeton

Mirror of Tree

SAP Off Campus Hiring_ March 2015 Verbal Skills

SAP Interview Questions

Find the element that appears once others appears thrice

Python List

Difference between a LinkedList and a Binary Search Tree BST

Copyright © 2026 · Genesis Framework · WordPress · Log in