## Number of unique permutations starting with 1 of a Binary String

Given a binary string composed of 0’s and 1’s. The task is to find the number of unique permutation of the string which starts with… Read More »

- Maximize the value of A by replacing some of its digits with digits of B
- Check if array can be divided into two sub-arrays such that their absolute difference is K
- Minimum spanning tree cost of given Graphs
- Make all elements of an array equal with the given operation
- Find the repeating and the missing number using two equations
- Find the values of X and Y in the Given Equations
- Count pieces of circle after N cuts
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Reconstruct the array by replacing arr[i] with (arr[i-1]+1) % M
- Number of pairs with Bitwise OR as Odd number
- Count pairs with Bitwise-AND as even number
- Maximize the value of x + y + z such that ax + by + cz = n
- Check if N can be represented as sum of integers chosen from set {A, B}
- Check if an array of 1s and 2s can be divided into 2 parts with equal sum
- Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
- Split N^2 numbers into N groups of equal sum
- Sum of all even numbers in range L and R
- Number of words in a camelcase sequence
- Represent a number as a sum of maximum possible number of Prime Numbers
- Maximize number of nodes which are not part of any edge in a Graph
- Count the number of common divisors of the given strings
- Absolute difference between the first X and last X Digits of N
- Check if a number can be represented as a sum of 2 triangular numbers
- Maximum sum after repeatedly dividing N by a divisor
- Partiton N into M parts such that difference between Max and Min part is smallest
- Count subarrays consisting of only 0's and only 1's in a binary array

Given a binary string composed of 0’s and 1’s. The task is to find the number of unique permutation of the string which starts with… Read More »

Let an be a sequence of numbers, which is defined by the recurrence relation a1=1 and an+1/an=2n. The task is to to find the value… Read More »

Given a value of cos(Θ) and a variable . The task is to find the value of cos(nΘ) using propety of trignomertric functions. Note: n… Read More »

Given N number of vertices of a Graph. The task is to find the total number of edges possible in a complete graph of N… Read More »

Give a complete graph with N-vertices. The task is to find out the maximum number of edge-disjoint spanning tree possible. Edge-disjoint Spanning Tree is a… Read More »

Given N points on the plane, ( X1, Y1 ), ( X2, Y2 ), ( X3, Y3 ), ……, ( XN, YN ). The task… Read More »

Given a square piece and a total number of cuts available n, Find out the maximum number of rectangular or square pieces of equal size… Read More »

Given the Length and Speed of the train and the time takes by the train to passes the bridge or tunnel, the task is to… Read More »

Given N, the number of persons. The task is to arrange N person around a circular table. Examples: Input: N = 4 Output: 6 Input:… Read More »

Given an angle where, . The task is to check whether it is possible to make a regular polygon with all of its interior angle… Read More »

Given two numbers and . The task is to find the sum of the sequence given below. (1*2*3*…*k) + (2*3*…*k*(k+1)) + (3*4*..*(k+1)*(k+2)) +…..+((n-k+1)*(n-k+2)*…*(n-k+k)). Since the… Read More »

Given a number N. The task is to write a program to find the Nth term in the below series: 5, 13, 25, 41, 61…… Read More »

Given two numbers sa and sb represented as strings, find ab % MOD where MOD is 1e9 + 7. The numbers a and b can… Read More »

Given the first term (A) and common difference (D) of an Arithmetic Progression, and a prime number (P). The task is to find the position… Read More »

Given three points on the X-axis which denotes the center of three line segments. The length of the line segment is also given as L.… Read More »