• 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

ADOBE Aptitude C Language Test

Difference between a LinkedList and a Binary Search Tree BST

Serialise Deserialise N-ary Tree

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

write a c program that given a set a of n numbers and another number x determines whether or not there exist two elements in s whose sum is exactly x

Binary Tree Isomorphic to each other

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

FizzBuzz Solution C C++

Leetcode: Edit Distance

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

Flipkart Set 1 On Campus with Answers

Edit Distance ( Dynamic Programming )

25 horses 5 tracks Find 3 fastest puzzle

Best Java Book | Top Java Programming Book for Beginners

Right view of Binary tree

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

In Given LinkedList Divide LL in N Sub parts and delete first K nodes of each part

Sort an array according to the order defined by another array

Generate next palindrome number

How Radix sort works

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

Find Pythagorean Triplets in an array in O(N)

Find the kth number with prime factors 3, 5 and 7

Knight Tour Problem (Graph – Breadth First Search)

CodeChef’ RRCOPY

Singly linked list

Circular Linked List

Hackerearth : Counting Subarrays

Password Predictor

The greedy coins game Dynamic Programming

Copyright © 2025 · Genesis Framework · WordPress · Log in