## Given number a perfect number or not…[cprogm]FTC

Darsh seemingly down-to-earth guy. Dash has a Brother Nathan. Nathan leads a life of a computer hacker by day and a thief by night.  One day,…

## Conversion of binary to Octal…[Cprogm] FTC

Simon is studying B.Tech.-Mechanical Engineering.  He’s going to attend a computer science-based subject exam this semester. Due to the less preparation in the previous monthly…

## Find the sum of digits in a number using function…[Cprogm] FTC

Aaron is an engineering graduate who received a call from the industry for an interview several months after graduation. So he was practicing the recursion method…

## Quotes of life…[Cprogm]FcukTheCode

Janu and Ram are close friends who task a lot about life. They go though a lot of inspiring “Quotes of Life”. One fine day…

## Number needs to be converted into words…[Cprogm] FTC

Roopa has given a program to her close friend Jhansi in the apartment where she lives. The task is if the number is given it…

## Not everyone probably knows that Nivin has younger brother Nithin…[Cprogm]FTC

Not everyone probably knows that Nivin has younger brother Nithin. Currently Nithin learns to read. He knows some subset of the letter of Latin alphabet.…

## Unique set of characters that occur in string one or more times…[Cprogm]FTC

For a string S let the unique set of characters that occur in it one or more times be C. Consider a permutation of the…

## Upper case to Lower case. And Vice-Versa…[Cprogm]FTC

Lokesh have been given a String S consisting of uppercase and lowercase English alphabets. Lokesh need to change the case of each alphabet in this String. That is,…

## String containing 2 characters Only. Change it into a string with no matching adjacent characters…[Cprogm]FTC

Hassan is given a string containing characters A and B only.  Your task is to change it into a string such that there are no…

## String consisting of only 1s and 0s,we need to find the number of sub-strings which start and end both in 1…[Cprogm]FTC

Fazil’s faculty gave him a string S consisting of only 1s and 0s and he need to find the number of sub-strings which start and…

## Find the start and end index of unsorted subarray….FcukTheCode

Find the start and end index of unsorted subarray such that sorting this subarray can sort all the array. INPUT_1:Array:  2  6  4  8  10 …

## Maximum number of pairs gb that can be formed?…[Cprogm]FTC

There are N students standing in a row and numbered 1 through N from left to right. You are given a string S with length…

## Jocelyn’s skill is to write stories of letters. But she finds it very boring…[Cprogm]FTC

Jocelyn’s skill is to write stories of letters. But she finds it very boring to write the story, and after three hours of work, Jocelyn realizes…

## Middle character needs to be ignored and to be checked for lapindrome…[Cprogm]FTC

Nathan is a Researcher in English Literature. According to him string which when split in the middle, gives two halves having the same characters and…

## Can you help them with the order in which they have to…[Cprogm]FTC

Ganapathy the Mathematics professor distributed the answer sheets for his students after the examination. His class had students who have passed the exam as well…

## Sort a sub-array which makes whole array sorted…FTC

Given an integer array nums, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole…

## Seating Arrangement is Triangular…[Cprgm] FTC

Laaysa with his friends going to the theatre for a movie.  The seating arrangement is triangular in size.  Theatre staffs insisted the audience to sit…

## Find the final states of N lights…[Cprogm] FTC

Asraf has N lights, arranged in a line, with him.  A[i] denotes the initial state of ‘i’th light.  He wants to toggle some lights, but…

## Check if reversing subarray makes the array sorted.

Given an array of distinct n integers. The task is to check whether reversing one sub-array make the array sorted or not. If the array…

## Smallest Difference Triplet…FTC

Three arrays of same size are given. Find a triplet such that maximum – minimum in that triplet is minimum of all the triplets. A…