Data Visualization is the presentation of data in graphical format. It helps people understand the significance of data by summarizing and presenting huge amount of… Read More »

#
All Medium Articles

Given an array of elements, sort the array in decreasing order using min heap. Input : arr[] = {5, 3, 10, 1} Output : arr[]… Read More »

Lex is a computer program that generates lexical analyzers, which is commonly used with the YACC parser generator. Lex, originally written by Mike Lesk and… Read More »

Given two numbers, n >= 0 and 0 <= k <= n, count the number of derangements with k fixed points. Examples: Input : n… Read More »

Given three integers, A, X and n, the task is to print terms of below binomial expression series. (A+X)n = nC0AnX0 + nC1An-1X1 + nC2An-2X2… Read More »

Given the Numerator and Denominator of N fractions. The task is to find the product of N fraction and output the answer in reduced form.… Read More »

First things first, I hope you are familiar to some of the concepts relating to Transactions. What is a Recoverable Schedule? What are Cascading Rollbacks… Read More »

An unrolled linked list is a linked list of small arrays, all of the same size where each is so small that the insertion or… Read More »

When we project 3-D objects on a 2-D screen, we need to detect the faces that are hidden on 2D. Back-Face detection, also known as… Read More »

Given three integers A, B and N the task is to find N Arithmetic means between A and B. We basically need to insert N… Read More »

Given n number of spots, and two players. Players need to connect any two spots without intersecting any of the drawn line, the player who… Read More »

java.util.stream.IntStream in Java 8, deals with primitive ints. It helps to solve the old problems like finding maximum value in array, finding minimum value in… Read More »

Prerequisite : Streams in java The skip(long N) is a method of java.util.stream.Stream object. This method takes one long (N) as an argument and returns… Read More »

Given three linked lists, find all common element among the three linked lists. Examples: Input : 10 15 20 25 12 10 12 13 15… Read More »

IntStream parallel() is a method in java.util.stream.IntStream. This method returns a parallel IntStream, i.e, it may return itself, either because the stream was already present,… Read More »

Stream sorted(Comparator comparator) returns a stream consisting of the elements of this stream, sorted according to the provided Comparator. For ordered streams, the sort method… Read More »

Stream.max() returns the maximum element of the stream based on the provided Comparator. A Comparator is a comparison function, which imposes a total ordering on… Read More »

Stream sorted() returns a stream consisting of the elements of this stream, sorted according to natural order. For ordered streams, the sort method is stable… Read More »

Given a 2D array, print it in counter-clock wise spiral form. See the following examples. My Personal Notes arrow_drop_up Save

distinct() returns a stream consisting of distinct elements in a stream. distinct() is the method of Stream interface. This method uses hashCode() and equals() methods… Read More »