# Tag Archives: TrueGeek-2021

Given an array arr[] of size N, the task is to count the number of longest increasing subsequences present in the given array. Example:Attention reader!… Read More
Given two arrays A[] and B[] both consisting of N integers, the task is to find the maximum length of subarray [i, j] such that… Read More
Given a 2-D array matrix[][] of size M*N and an integer K. For each occurrence of K in the matrix[][], replace K and all the… Read More
In C/C++, strcat() is a predefined function used for string handling, under string library (string.h in C, and cstring in C++). This function appends the… Read More
Given a positive integer N, the task is to generate N random hexadecimal integers. Examples:Attention reader! Don’t stop learning now. Get hold of all the… Read More
Given an array arr[] of N integers, the task is to find the maximum sum of subarray having length an at least 2 whose first… Read More
Given a string S of size N, the task is to find the maximum sum of values assigned to all the alphabets of the string… Read More
Given N strings, print the maximum length of the string and the string formed by concatenating any of the N strings, such that every letter… Read More
Weakly Connected Graph: A directed graph ‘G = (V, E)’ is weakly connected if the underlying undirected graph Ĝ is connected. Attention reader! Don’t stop learning… Read More
Given a N x M matrix. Each cell of the matrix has a numerical value pointing to the next cell it leads to. The values… Read More
Given a Binary Tree, the task is to find the sum of leaf nodes at every level of the given tree. Examples:Attention reader! Don’t stop… Read More
Given a positive integer N, the task is to find the minimum number of addition operations required to convert the number 0 to N such… Read More
Given a positive integer N, the task is to find the number of unordered pairs of semi-prime numbers in the range [1, N] such that… Read More
After the invention of computers, technology had evolved and advanced in a very significant way. This advancement of technology and the development of computers are… Read More
Earlier, way back in the 9th century, mathematical equations containing certain information used to be written in language form instead of mathematical form. For instance,… Read More