Skip to content

Tag Archives: Maths

Given a binary string S of length N (1 ≤ N ≤ 105), the task is to print a permutation A consisting of integers 0… Read More
Given two integers X and Y, the task is to make both the integers equal by performing the following operations any number of times: Increase… Read More
Given two strings S and T representing non-negative rational numbers, the task is to check if the values of S and T are equal or… Read More
Given a floating-point number N, the task is to check if the value of N is equivalent to an integer or not. If found to… Read More
Given a positive integer N, the task is to find the value of (22 * X), where X is the binary representation of N. Since… Read More
Given a 2D array knights[][] of size N * 2, with each row of the form { X, Y } representing the coordinates of knights,… Read More
Question 11: The sum of a number and its square is 63/4 , find the numbers. Solution: Let the number is = x so it’s… Read More
Given a sorted array arr[] consisting of N distinct elements, the task is to find the maximum possible common difference of an arithmetic progression such… Read More
Given a positive integer N, the task is to construct the longest sorted sequence of unique elements whose LCM of the is equal to N.… Read More
Given an integer N and an array arr[], the task is to check if a sequence of first N natural numbers, i.e. {1, 2, 3,… Read More
Given two positive integers N and K, the task is to find the value of N after incrementing the value of N in each operation… Read More
Implicit functions are functions where a specific variable cannot be expressed as a function of the other variable. A function that depends on more than… Read More
Given a 2D array point[][] with each row of the form {X, Y}, representing the co-ordinates of a polygon in either clockwise or counterclockwise sequence,… Read More