• 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

Binary Tree Isomorphic to each other

Find Nearest Minimum number in left side in O(n)

Facebook Interview Question : Interleave List

CodeChef Code SGARDEN

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

SAP Interview Questions

Cisco Hiring Event 21st – 22nd Feb 2015

SAP Off Campus Hiring_ March 2015 Sample Questions

Binary Tree in Java

Regular Expression Matching

Microsoft BING Interview Experience

Amazon Interview Experience – SDE Chennai

Introduction To Number Theory ( Part 1 )

SAP Off Campus Hiring_ March 2015 Computer Skills

Leetcode: Edit Distance

Stock Buy Sell to Maximize Profit

Print all nodes that are at distance k from a leaf node

Trie Dictionary

Templates in C++

simple sql injection

How strtok() Works

Maximum path sum between two leaves

Find loop in Singly linked list

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

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

SAP Off Campus Hiring_ March 2015 Verbal Skills

Length of the longest substring without repeating characters

Skiing on Mountains Matrix

Diagonal Traversal of Binary Tree

The greedy coins game Dynamic Programming

Copyright © 2025 · Genesis Framework · WordPress · Log in