All Medium Articles
This article demonstrates the pattern to print the Venus Symbol (An international gender symbol for females).  C++ // C++ code to wish happY Women's DaY… 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
Which of the following is not correct (in C++) ? Class templates and function templates are instantiated in the same way Class templates differ from… Read More
Stream mapToInt(ToIntFunction mapper) returns an IntStream consisting of the results of applying the given function to the elements of this stream. Stream mapToInt(ToIntFunction mapper) is… Read More
In Java, Stream provides an powerful alternative to process data where here we will be discussing one of the very frequently used methods named peek()… 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
There are n students in a class, each in possession of a different personality attribute. As they are new in the school, so they want… Read More
Dynamic Programming(DP) is a technique to solve problems by breaking them down into overlapping sub-problems which follows the optimal substructure. There are various problems using… Read More
Python int() function returns an integer from a given object or converts a number in a given base to a decimal. Example: In this example,… Read More
When viewing a picture containing non transparent objects and surfaces, it is not possible to see those objects from view which are behind from the… Read More
Prerequisite : depth-buffer (or Z Buffer) method  A-Buffer method in computer graphics is a general hidden face detection mechanism suited to medium scale virtual memory… Read More
Stream flatMapToDouble(Function mapper) returns an DoubleStream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced… Read More
Stream flatMap(Function mapper) returns a stream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced… Read More
Prerequisite – Program for Round Robin scheduling  In the traditional Round Robin scheduling algorithm, all processes were treated equally for processing. The objective of the… Read More
Prerequisite – Combinatorics Basics, Generalized PnC Set 1, Set 2     Definition : Generating functions are used to represent sequences efficiently by coding the terms… 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
The max() function of PHP is used to find the numerically maximum value in an array or the numerically maximum value of several specified values.… Read More