Given an array arr[] of size N and an integer K, the task is to print all possible ways to split the given array into… Read More

# Category Archives: Technical Scripter

Given two binary strings S1 and S2 of length N (1 ≤ N ≤ 105), the task is to check if it is possible to… Read More

Typecasting: It is a is converted into another data type by the programmer using the casting operator during the program design. In typecasting, the destination… Read More

In this article, we will discuss how to generate a random password of a given length consists of any characters. Approach: The below-given program involves… Read More

We can change body class before the component is mounted in ReactJS using the following approach: Prerequisite: React Component LifeCycle The lifecycle of react components… Read More

Given two integers N and K, the task is to represent N in K bits and print the number obtained after flipping all the bits.… Read More

Given a string str consisting of pairs of balanced parentheses, the task is to calculate the score of the given string based on the following… Read More

Given an array of pairs arr[] of size N, the task is to find any two pairs (a, b) and (c, d) such that a… Read More

Given an array arr[] consisting of N integers in the range [0, M] and an integer M, the task is to count the number of… Read More

Given a positive integer N, the task is to construct a matrix of size N * N such that all the matrix elements are distinct… Read More

Given an array of strings Files[], representing name of some files, the task is to sort the array based on the lexicographical order of the… Read More

Given two binary strings str1 and str2 having same length, the task is to find if it is possible to make the two binary strings… Read More

Given an array arr[], the task is to find the count of array elements satisfying the following conditions: The array elements should be strictly greater… Read More

Given an array arr[] and an integer value K, the task is to count the maximum number of array elements that can be selected such… Read More

Given an integer N, the task is to count the number of ways to represent N as the sum of powers of 2. Examples: Input:… Read More