• 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

Check Binary Tree is Binary Search Tree or not

Longest Increasing Subsequence

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

How Radix sort works

Handle duplicates in Binary Search Tree

HackeEarth Flipkart’s Drone

Introduction To Number Theory ( Part 1 )

System Design: Designing a LLD for Hotel Booking

Doubly linked list

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

Amazon Interview Experience – SDE Chennai

Leetcode: Edit Distance

Find Nearest Minimum number in left side in O(n)

Generate largest number arranging a no. of given non negative integer numbers

Find if two rectangles overlap

ADOBE Aptitude C Language Test

Password Predictor

Right view of Binary tree

Flipkart SDET Interview Experience

Daughter’s Age VeryGood Puzzle

Coin Collection Dynamic Programming

SAP Hiring Off-Campus General Aptitude

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

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 in Java

25 horses 5 tracks Find 3 fastest puzzle

SAP Off Campus Hiring_ March 2015 Verbal Skills

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

Convert Decimal to Roman numbers / Romanizer HackerEarth Code

Find shortest distances between every pair of vertices ( Dynamic Programming Floyd Warshall Algorithm)

Copyright © 2025 · Genesis Framework · WordPress · Log in