• 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

Reverse a Linked List in groups of given size

Maximum sum contiguous subarray of an Array

Max Sum in circularly situated Values

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

Handle duplicates in Binary Search Tree

Walmart Labs Interview Experience

Binary Tree Isomorphic to each other

Leetcode: Edit Distance

Regular Expression Matching

Stickler thief

Printing each word reverse in string

Python Array String

Trapping Rain Water

SAP Off Campus Hiring_ March 2015 Verbal Skills

Memory Efficient LinkedList

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

flattens 2 D linked list to a single sorted link list

Python Dictionaries

Password Predictor

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Daughter’s Age VeryGood Puzzle

Trie Dictionary

Check Binary Tree is Binary Search Tree or not

ADOBE Aptitude C Language Test

BFS (Breath First Search)

Level order traversal in Spiral form

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

strtok()

C++ OOPs Part2

Find shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

Copyright © 2025 · Genesis Framework · WordPress · Log in