Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Amazon
1.8k+ articles
Searching
1.7k+ articles
Microsoft
780+ articles
Binary Search Tree
280+ articles
Heap
260+ articles
Order-Statistics
65 articles
array-stream
17 posts
Popular Articles
Recent Articles
Java Program to Find the K'th largest element in a stream
Last Updated: 17 August 2023
Given an infinite stream of integers, find the k'th largest element at any point of time.Example:Input:stream[] = {10, 20, 11, 70, 50, 40, 1
...read more
Arrays
Order-Statistics
Amazon
Cisco
Java
Searching
Heap
Binary Search Tree
Java Programs
array-stream
DSA
Sort a stream of integers
Last Updated: 11 November 2022
Given an array, arr[] of size N whose elements from left to right, must be read as an incoming stream of integers, the task is to sort the s
...read more
Arrays
Binary Search
Searching
Sorting
Binary Search Tree
Competitive Programming
array-stream
DSA
Mode in a stream of integers (running integers)
Last Updated: 19 January 2023
Given that integers are being read from a data stream. Find the mode of all the elements read so far starting from the first integer till th
...read more
Arrays
Mathematical
array-stream
Java-HashMap
frequency-counting
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Amazon
1.8k+ articles
Searching
1.7k+ articles
Microsoft
780+ articles
Binary Search Tree
280+ articles
Heap
260+ articles
Order-Statistics
65+ articles
Rank of all elements in a Stream in descending order when they arrive
Last Updated: 02 January 2023
Given a stream of numbers as arr, the task is to find the rank of each element in the stream in descending order when they arrive.Rank is de
...read more
Arrays
Searching
Sorting
array-stream
DSA
Streams on Arrays in Java 8
Last Updated: 16 September 2022
In this article, we would be going through stream method of Arrays class which is added in Java 8, it simplifies many operations on arrays a
...read more
Java
array-stream
java-stream
Java-Array-Programs
Find top k (or most frequent) numbers in a stream
Last Updated: 03 January 2023
Given an array of n numbers. Your task is to read numbers from the array and keep at-most K numbers at the top (According to their decreasin
...read more
Arrays
Order-Statistics
Amazon
Accolite
Hash
array-stream
cpp-unordered_map
DSA
Queue based approach for first non-repeating character in a stream
Last Updated: 10 January 2023
Given a stream of characters and we have to find first non repeating character each time a character is inserted to the stream.Examples:Inpu
...read more
Strings
Linked List
Microsoft
Amazon
Yahoo
Flipkart
Payu
Queue
Hash
array-stream
DSA
Largest triplet product in a stream
Last Updated: 14 February 2025
Given a stream of integers represented as arr[]. For each index i from 0 to n-1, print the multiplication of the largest, second largest, an
...read more
Arrays
Heap
array-stream
DSA
Check divisibility in a binary stream
Last Updated: 23 November 2023
Stream of binary number is coming, the task is to tell the number formed so far is divisible by a given number n. At any given time, you wil
...read more
Bit Magic
divisibility
array-stream
DSA
K'th largest element in a stream
Last Updated: 30 December 2022
Given an infinite stream of integers, find the Kth largest element at any point of time.Note: Here we have a stream instead of a whole array
...read more
Arrays
Order-Statistics
Amazon
Cisco
Searching
Heap
Binary Search Tree
array-stream
DSA
Online algorithm for checking palindrome in a stream
Last Updated: 11 February 2025
Given a stream of characters (characters are received one by one), write a function that prints 'Yes' if a character makes the complete stri
...read more
Strings
Pattern Searching
palindrome
array-stream
DSA
First non-repeating character in a stream
Last Updated: 25 March 2025
Given an input stream s consisting solely of lowercase letters, you are required to identify which character has appeared only once in the s
...read more
Strings
Linked List
Microsoft
Amazon
Yahoo
Flipkart
Payu
FactSet
Queue
Hash
Python
array-stream
DSA
Select a random number from stream, with O(1) space
Last Updated: 20 April 2023
Given a stream of numbers, generate a random number from the stream. You are allowed to use only O(1) space and the input is in the form of
...read more
Random Algorithms
Mathematical
Randomized
array-stream
DSA
Average of a stream of numbers
Last Updated: 14 March 2024
Difficulty Level: RookieGiven a stream of numbers, print the average (or mean) of the stream at every point. For example, let us consider th
...read more
Arrays
Mathematical
array-stream
DSA
Find Median from Running Data Stream
Last Updated: 17 February 2025
Given a data stream arr[] where integers are read sequentially, the task is to determine the median of the elements encountered so far after
...read more
Microsoft
Amazon
Adobe
Yahoo
Google
Morgan Stanley
Oracle
Facebook
Belzabar
Hike
MAQ Software
SAP Labs
Ola Cabs
FactSet
Mathematical
Heap
array-stream
statistical-algorithms
Apple
median-finding
DSA
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !