• 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

Max 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

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 ?

System Design: Designing a LLD for Hotel Booking

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

Print vertical sum of all the axis in the given binary tree

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

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

Given Set of words or A String find whether chain is possible from these words or not

C++ OOPs Part2

BlueStone E-commerce Interview Experience

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

Reversal of LinkedList

LeetCode : Word Search

Microsoft BING Interview Experience

Printing intermediate Integers between one element & next element of array

Flipkart Set 1 On Campus with Answers

SAP Off Campus Hiring_ March 2015 Verbal Skills

Find position of the only set bit

Trie Dictionary

Reliance Jio Software Developer Interview Experience

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

Test Cases for Round Function

Amazon Interview Experience – SDE Chennai

Cisco Hiring Event 21st – 22nd Feb 2015

Facebook Interview Question : Interleave List

SAP Off Campus Hiring_ March 2015 Sample Questions

Printing each word reverse in string

Find the element that appears once others appears thrice

Coin Collection Dynamic Programming

Stock Buy Sell to Maximize Profit

SAP Off Campus Hiring_ March 2015 Computer Skills

Copyright © 2026 · Genesis Framework · WordPress · Log in