• 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

Urban Ladder Written Test.

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

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Mirror of Tree

Maximum path sum between two leaves

Find min element in Sorted Rotated Array (Without Duplicates)

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

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

Get Minimum element in O(1) from input numbers or Stack

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

Number of Islands BFS/DFS

LeetCode : Word Search

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

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

ADOBE Aptitude C Language Test

Spanning Tree

Find two non repeating elements in an array of repeating elements

Find position of the only set bit

SAP Hiring Off-Campus General Aptitude

Find the element that appears once others appears thrice

simple sql injection

Facebook Interview Question : Interleave List

Find loop in Singly linked list

Diagonal Traversal of Binary Tree

Length of the longest substring without repeating characters

Cisco Hiring Event 21st – 22nd Feb 2015

Flipkart SDET Interview Experience

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

Implement a generic binary search algorithm for Integer Double String etc

LeetCode: Binary Tree Maximum Path Sum

Copyright © 2026 · Genesis Framework · WordPress · Log in