• 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 Petrol bunks or City arranged in circle. You have Fuel and distance between petrol bunks. Is it possible to find starting point so that we can travel all Petrol Bunks

Closed Parentheses checker

TicTacToe Game As Asked in Flipkart

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

Find Pythagorean Triplets in an array in O(N)

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

flattens 2 D linked list to a single sorted link list

Check Binary Tree is Binary Search Tree or not

Test Cases for Round Function

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

Implement a generic binary search algorithm for Integer Double String etc

Find if a binary tree is height balanced ?

C Program for TAIL command of UNIX

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

Python String and numbers

25 horses 5 tracks Find 3 fastest puzzle

SAP Off Campus Hiring_ March 2015 Verbal Skills

Handle duplicates in Binary Search Tree

Sort an array according to the order defined by another array

Skiing on Mountains Matrix

Cisco Hiring Event 21st – 22nd Feb 2015

Find loop in Singly linked list

Convert number to words java

LeetCode : Word Search

Client Server C program

Word Break Problem

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

Maximum of all subarrays of size k

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

BlueStone E-commerce Interview Experience

Copyright © 2025 · Genesis Framework · WordPress · Log in