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 such that sorting this subarray can sort all the array. INPUT_1:Array: 2 6 4 8 10 …
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 to write the story, and after three hours of work, Jocelyn realizes…
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…
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…
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…
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…
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…