• 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

Find min element in Sorted Rotated Array (With Duplicates)

K’th Largest Element in BST when modification to BST is not allowed

SAP Off Campus Hiring_ March 2015 Verbal Skills

Interfaces in C++ (Abstract Classes in C++)

Find min element in Sorted Rotated Array (Without Duplicates)

Find next greater number with same set of digits

Longest Increasing Subsequence

Linked List V/S Binary Search Tree

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

1014 Practice Question of New GRE – Princeton

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

Doubly linked list

Max Sum in circularly situated Values

Sort Stack in place

strtok()

SAP Hiring Off-Campus General Aptitude

ADOBE Aptitude C Language Test

Regular Expression Matching

Maximum sum contiguous subarray of an Array

Convert number to words java

Edit Distance ( Dynamic Programming )

Knight Tour Problem (Graph – Breadth First Search)

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

Amazon Interview On-Campus For Internship – 1

LeetCode: Binary Tree Maximum Path Sum

Calculate price of parking from parking start end time prices

Given a float number convert it into the string WITHOUT using any inbuilt Function

Subset Sum Problem Dynamic programming

Walmart Labs Interview Experience

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

Copyright © 2026 · Genesis Framework · WordPress · Log in