• 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

CodeChef Code SGARDEN

VMWare SDEII Interview

SAP Off Campus Hiring_ March 2015 Computer Skills

Binary Tree Isomorphic to each other

Closed Parentheses checker

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

Apriori algorithm C Code Data Mining

SAP Hiring Off-Campus General Aptitude

Possible sizes of bus to carry n groups of friends

Add Sub Multiply very large number stored as string

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

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

Find Percentage of Words matching in Two Strings

HackeEarth Flipkart’s Drone

Knight Tour Problem (Graph – Breadth First Search)

Password Predictor

Printing Longest Common Subsequence

VMWare Openings

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

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

Trapping Rain Water

SAP Interview Questions

C++ OOPs Part2

Fibonacci Hashing & Fastest Hashtable

SAP Off Campus Hiring_ March 2015 Sample Questions

C Program for TAIL command of UNIX

Minimum insertions to form a palindrome

Maximum sum contiguous subarray of an Array

Amazon Interview Experience – SDE Chennai

Spanning Tree

Copyright © 2025 · Genesis Framework · WordPress · Log in