Occurrence of a character
Given a sentence S and a character ch, count occurrence of the given character in the sentence Input Format First […]
Given a sentence S and a character ch, count occurrence of the given character in the sentence Input Format First […]
Given a matrix A of size N x M. Elements of the matrix are either 0 or 1. If A[i][j]
Given an Array, sort the array using the Quick sort algorithm. NOTE: Don’t use any inbuilt methods/libraries.
Given an array of elements containing 0’s and 1’s. You have to find the length of longest contiguous 1’s. Input
Given an integer array A of size N. You have to construct a new B array with a length of
Print hollow half inverted pyramid pattern using ‘*’. See example for more details. Input Format First and only line of
Print hollow rectangle pattern using ‘*’. See example for more details. Input Format Input contains two integers W – width
Write a program which reads three integers a, b and c, and prints the number of divisors of c between a and b. Input Three integers a, b and c are given in a
While Alice was drinking sugarcane juice, she started wondering about the following facts: Alice wonders, what is the juicer’s profit