• 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

CodeChef Code SGARDEN

Password Predictor

Flipkart Set 1 On Campus with Answers

Cisco Hiring Event 21st – 22nd Feb 2015

Stickler thief

simple sql injection

Test Cases for Round Function

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

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

Maximum difference between two elements s.t larger element appears after the smaller number

Amazon Interview On-Campus For Internship – 1

SAP Off Campus Hiring_ March 2015 Sample Questions

VMWare Openings

Spanning Tree

Python List

Python Array String

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

Maximum of all subarrays of size k

25 horses 5 tracks Find 3 fastest puzzle

Reliance Jio Software Developer Interview Experience

flattens 2 D linked list to a single sorted link list

Given a float number convert it into the string WITHOUT using any inbuilt Function

LeetCode: Binary Tree Maximum Path Sum

How strtok() Works

Number of Islands BFS/DFS

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

Urban Ladder Written Test.

Find min element in Sorted Rotated Array (Without Duplicates)

Top 10 Interviews Techniqes for Campus Interview in IIT NIT BITS for MTech

FizzBuzz Solution C C++

Copyright © 2026 · Genesis Framework · WordPress · Log in