• 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

Handle duplicates in Binary Search Tree

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

The Magic HackerEarth Nirvana solutions Hiring Challenge

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

Common Ancestor in a Binary Tree or Binary Search Tree

Find an index i such that Arr [i] = i in array of n distinct integers sorted in ascending order.

Printing intermediate Integers between one element & next element of array

How strtok() Works

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

BFS (Breath First Search)

Flipkart Set 1 On Campus with Answers

Templates in C++

Code Chef PRGIFT Solution

SAP Off Campus Hiring_ March 2015 Verbal Skills

LeetCode : Word Search

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

Length of the longest substring without repeating characters

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 ?

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

There are N nuts and N bolts, u have to find all the pairs of nuts and bolts in minimum no. of iteration

Convert number to words java

Maximum path sum between two leaves

Check if an array has duplicate numbers in O(n) time and O(1) space

Binary Tree in Java

Longest Increasing Subsequence

TicTacToe Game As Asked in Flipkart

Binary Tree in Java

How Radix sort works

DFS (Depth First Search)

Add Sub Multiply very large number stored as string

Copyright © 2025 · Genesis Framework · WordPress · Log in