Skip to content
All Medium Articles
A data input stream enables an application to read primitive Java data types from an underlying input stream in a machine-independent way(instead of raw bytes).… Read More
FileInputStream is useful to read data from a file in the form of sequence of bytes. FileInputStream is meant for reading streams of raw bytes… Read More
There are some natural number whose all permutation is greater than or equal to that number eg. 123, whose all the permutation (123, 231, 321)… Read More
Given a knapsack weight W and a set of n items with certain value vali and weight wti, we need to calculate the maximum amount… Read More
For a given number n > 0, find the number of different ways in which n can be written as a sum of at two… Read More
Given three positive integer n, x, y. The task is to print Greatest Common Divisor of numbers formed by n repeating x times and number… Read More
Given two numbers x and y (x <= y), find out the total number of natural numbers, say i, for which i! is divisible by… Read More
Can You guess the output of following code fragment: public class Test {     public static void main(String[] args)     {         System.out.println(2 % 0);     } }        Yes,… Read More
Given n ranges of the form L and R, the task is to find the maximum occurred integer in all the ranges. If more than… Read More
Given a number x, the task is to find first natural number i whose factorial is divisible by x.Examples :   Input : x = 10… Read More
This module performs conversions between Python values and C structs represented as Python bytes objects. Format strings are the mechanism used to specify the expected… Read More
Given a Binary Matrix. The task is to find the pair of row in the Binary matrix that has maximum bit difference Examples: Input: mat[][]… Read More
Given a set of integers, find a distinct sum that can be generated from the subsets of the given sets and print them in increasing… Read More
Variadic templates are template that take a variable number of arguments. Variadic function templates are functions which can take multiple number of arguments. Syntax for… Read More
All of you must be familiar with what PDFs are. In-fact, they are one of the most important and widely used digital media.  PDF stands… Read More
The Java.io.Console class provides methods to access the character-based console device, if any, associated with the current Java virtual machine. The Console class was added… Read More
Given n coordinate (x, y) of points on 2D plane and Q queries. Each query contains an integer r, the task is to count the… Read More
Phlips came in our campus on 20th dec. and the interviews on 22nd dec.The Initial shortlisting was done on the basis of CGPA. The cutoff… Read More
Given a matrix A of size NxN, we need to find the number of inversion pairs in it. Inversion count in a matrix is defined… Read More
Given an array arr[0..n-1] of positive and negative numbers we need to find if there is a cycle in array with given rules of movements.… Read More