# Category Archives: Mathematical

Given an integer N. The task is to find the sum of the first N terms of the series 5, 11, 19, 29, 41, .â€¦ Read More
Given an array arr[] of even length N and an integer K denoting the range of numbers in the array i.e. the numbers in theâ€¦ Read More
Given an array of pairs arr[] of size N where the first value of all the pairs are distinct. For each pair of the givenâ€¦ Read More
Given a binary string str of length N, the task is to count the maximum number of adjacent pairs of form “01” or “10” thatâ€¦ Read More
Given a positive integer, N. Find the sum of the first N term of the series-  0.1, 0.11, 0.111, 0.1111, ….till N terms Examples: Input:â€¦ Read More
Given an integer N, the task is to find the Nth term of the series  3, 8, 15, 24, . . .till Nth term Examples:â€¦ Read More
Given a positive integer, N. Find the sum of the first N term of the series- 1, (1+4), (1+4+42), (1+4+42+43), …., till N terms Examples:â€¦ Read More
Given an integer N, the task is to find the Nth term of the series  3, 11, 31, 69, . . . . . tillâ€¦ Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:â€¦ Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:â€¦ Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:â€¦ Read More
Given non-negative integers K, M, and an array arr[] with N elements find the Mth element of the array after K left rotations. Examples: Input:â€¦ Read More
Given a binary tree, the task is to find the length of the longest path which forms an Arithmetic progression. The path can start andâ€¦ Read More
Given a square matrix M[][] of size N x N, the task is to find the maximums & minimums of each of the rows andâ€¦ Read More
Given an array arr[] containing N non-negative integers, the task is to find the maximum AND value among all the subsets having length K.  Examples: â€¦ Read More