Longest contiguous 1’s
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 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
Each pizza consists of 44 slices. There are 𝑁N friends and each friend needs exactly 𝑋X slices. Find the minimum number of pizzas they should order to satisfy
Chef’s phone shows a Battery Low notification if the battery level is 15%15% or less. Given that the battery level of Chef’s
Chef is looking to buy a TV and has shortlisted two models. The first one costs 𝐴A rupees, while the second one