• 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

Find the smallest window in a string containing all characters of another string

SAP Off Campus Hiring_ March 2015 Sample Questions

Maximum of all subarrays of size k

DFS (Depth First Search)

Generic Object Oriented Stack with Template

Find Pythagorean Triplets in an array in O(N)

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

Diagonal Traversal of Binary Tree

Length of the longest substring without repeating characters

How strtok() Works

Right view of Binary tree

Leetcode: Edit Distance

flattens 2 D linked list to a single sorted link list

Test Cases for Round Function

Find loop in Singly linked list

Doubly linked list

C Program for TAIL command of UNIX

SAP Interview Questions

Connect n ropes with minimum cost

SAP Off Campus Hiring_ March 2015 Verbal Skills

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

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

TicTacToe Game As Asked in Flipkart

Edit Distance ( Dynamic Programming )

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

Daughter’s Age VeryGood Puzzle

Python List

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

Find the element that appears once others appears thrice

Level order traversal in Spiral form

Copyright © 2026 · Genesis Framework · WordPress · Log in