Skip to content

Tag Archives: math

Given integers n, a, b and c, the task is to find the maximum value of x + y + z such that ax +… Read More
Given two integers N and X. The task is to print the absolute difference between the first X and last X digits in N. Considering… Read More
Given an undirected graph of V nodes (V > 2) named V1, V2, V3, …, Vn. Two nodes Vi and Vj are connected to each… Read More
Given an array arr[] and an integer K, the task is to find whether the array can be divided into two sub-arrays such that the… Read More
Given an array arr[] of size N, each integer from the range [1, N] appears exactly once except A which appears twice and B which… Read More
Given two integers L and R, the task is to find the sum of all even numbers in range L and R. Examples:   Input: L =… Read More
Given three integers N, A and B, the task is to find whether N can be represented as sum of A’s and B’s. Examples:  Input:… Read More
Given an array A[] of size N. The task is to find how many pair(i, j) exists such that A[i] OR A[j] is odd.Examples:   Input… Read More
Given two integers N and M, partition N into M integers such that the difference between the maximum and minimum integer obtained by the partition… Read More
Given an array of integers. The task is to find the number of pairs (i, j) such that A[i] & A[j] is even. Examples:  Input: N… Read More
Given an even number N. The task is to consider numbers from 1 to N2, split them into N groups of the equal sum.Examples:  Input:… Read More
Given an integer N, where . The task is to print the count of pieces of a circle with N cuts where each cut passes through… Read More
Given a binary array consisting of only zeroes and ones. The task is to find:   The number of subarrays which has only 1 in it.… Read More
CamelCase is the sequence of one or more than one words having the following properties:   It is a concatenation of one or more words consisting… Read More
Given an array of N elements and an integer M. Now, the array is modified by replacing some of the array elements with -1. The… Read More

Start Your Coding Journey Now!