• 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

Printing each word reverse in string

Templates in C++

BlueStone E-commerce Interview Experience

K’th Largest Element in BST when modification to BST is not allowed

Reverse a Linked List in groups of given size

Find the number ABCD such that when multipled by 4 gives DCBA.

Find if two rectangles overlap

Serialise Deserialise N-ary Tree

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

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

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

Advanced SQL Injection

System Design: Designing a LLD for Hotel Booking

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

Singly linked list

Wrong Directions given find minimum moves so that he can reach to the destination

Amazon Interview On-Campus For Internship – 1

Reversal of LinkedList

Skiing on Mountains Matrix

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

C++ OOPs Part2

Given a string, find the first character which is non-repetitive

Python Dictionaries

SAP Off Campus Hiring_ March 2015 Verbal Skills

Generic Object Oriented Stack with Template

Binary Tree in Java

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

SAP Off Campus Hiring_ March 2015 Sample Questions

Add Sub Multiply very large number stored as string

Client Server C program

Copyright © 2026 · Genesis Framework · WordPress · Log in