# Tag Archives: array-stream

Given an array stream of n integers in the form of a stream, the task is to find the minimum number of operations that areâ€¦ Read More
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, 100,â€¦ Read More
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,â€¦ Read More
Given an array arr[] of size N representing integers required to be read as a data stream, the task is to calculate and print theâ€¦ Read More
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â€¦ Read More
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â€¦ Read More
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â€¦ Read More
Stream toArray() returns an array containing the elements of this stream. It is a terminal operation i.e, it may traverse the stream to produce aâ€¦ Read More
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â€¦ Read More
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â€¦ Read More
Given a stream of characters and we have to find first non repeating character each time a character is inserted to the stream.  Examples:  Inputâ€¦ Read More
Given a stream of integers represented as arr[]. For each index i from 0 to n-1, print the multiplication of largest, second largest, third largestâ€¦ Read More
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â€¦ Read More
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â€¦ Read More
Given a stream of characters (characters are received one by one), write a function that prints ‘Yes’ if a character makes the complete string palindrome,â€¦ Read More