# Category Archives: Java

Given an array of positive integers. We are required to write a program to print the minimum product of any two numbers of the given… Read More
Introduction to Identity Matrix :  The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or… Read More
Given an array a, we have to find the minimum product possible with the subset of elements present in the array. The minimum product can… Read More
Given two sorted arrays of distinct elements, we need to print those elements from both arrays that are not common. The output should be printed… Read More
Given a sorted array of distinct positive integers, print all triplets that form AP (or Arithmetic Progression)Examples :   Input : arr[] = { 2, 6,… Read More
Given a singly linked list and an integer K, the task is to rotate the linked list clockwise to the right by K places.Examples:   Input:… Read More
Given an array arr[] consisting of N positive integers, the task is to rotate the digits of array elements in an anti-clockwise direction such that… Read More
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such… Read More
Given a range [L, R], we need to find the count of total numbers of prime numbers in the range [L, R] where 0
Given an Array of size N and a values K, around which we need to right rotate the array. How to quickly print the right… Read More
The decimal representation of a number is a base-10 number system having only ten states 0, 1, 2, 3, 4, 5, 6, 7, 8, and… Read More
Spring Boot is built on the top of the spring and contains all the features of spring. And is becoming a favorite of developers these… Read More
CRUD stands for Create, Read/Retrieve, Update, and Delete and these are the four basic operations that we perform on persistence storage. CRUD is data-oriented and… Read More
Given a n x n matrix. The problem is to sort the matrix row-wise and column wise.Examples:   Input : mat[][] = { {4, 1, 3},… Read More
Given a n × m binary matrix, count the number of sets where a set can be formed one or more same values in a… Read More