Given an array of n integers, we have to partition the array into three segments such that all the segments have equal sum. Segment sum… Read More »

Given an array arr[], sort this array in descending order using STL in C++. Example: Input: arr[] = {1, 45, 54, 71, 76, 12} Output:… Read More »

Given a vector, find the sum of the elements of this vector using STL in C++. Example: Input: vec = {1, 45, 54, 71, 76,… Read More »

Given an array arr[] of N unique elements and Q queries. Every query consists of two integers L and R. The task is to print… Read More »

Given two integers A and B, the task is to calculate 22A % B. Examples: Input: A = 3, B = 5 Output: 1 223… Read More »

Given an array arr[] of size N and an integer K, the task is to find the smallest index in the array such that: floor(arr[i]… Read More »

Q.1. What is Regression ? What is Classification ? Ans. Regression : Target variable continous. Classification : Target variable is discrete Q.2. What are the… Read More »

Given three integers X, N and M. The task is to find XXX…(N times) % M where X can be any digitfrom the range [1,… Read More »

Given a string str which represents the ASCII Sentence, the task is to convert this string into its equivalent character sequence. Examples: Input: str =… Read More »

The software is instruction or computer program that when executed provide desired features, function, and performance. A data structure that enables the program to adequately… Read More »

Given a string str, the task is to count how many times the keys will be pressed in total if there is a mobile like… Read More »

cc command is stands for C Compiler, usually an alias command to gcc or clang. As the name suggests, executing the cc command will usually… Read More »

Given an array of size n, the task is to find the minimum number of steps required to make all the elements of the array… Read More »

Given an array A and positive integer K. The task is to find maximum number elements for which the absolute difference of any of the… Read More »

In a Unix/Linux operating system, the C/C++ languages provide the POSIX thread(pthread) standard API(Application program Interface) for all thread related functions. It allows us to… Read More »

Round 1: Online Test The test was conducted on Mettle platform. It consisted of 2 sections, Technical MCQs which were based on complexities, data structures,… Read More »

Given an array A[] and positive integer K, the task is to count total number of pairs in the array whose sum is divisible by… Read More »

Given 2 numbers a and b of same length. The task is to calculate their sum in such a way that when adding two corresponding… Read More »

Given a string str and an integer K, the task is to check whether the given string is K-periodic. A string is k-periodic if the… Read More »

Given an integer Y and a range [L, R], the task is to find the count of all numbers from the given range whose sum… Read More »