## Maximum length of consecutive 1’s in a binary string in Python using Map function

We are given a binary string containing 1’s and 0’s. Find maximum length of consecutive 1’s in it. Examples: Input : str = ‘11000111101010111’ Output… Read More »

We are given a binary string containing 1’s and 0’s. Find maximum length of consecutive 1’s in it. Examples: Input : str = ‘11000111101010111’ Output… Read More »

In this article, we will see how to create an image slide show for your webpage to make it look more attractive. For this we… Read More »

S1– MD5 is vulnerable to the Birthday attack. S2– traceroute uses the “Destination port unreachable” ICMP error message. S3– 3DES is a type of Public… Read More »

Match the security protocols with the layers they are used in and choose the correct code- Codes- (A) (a) (B) (b) (C) (c) (D) (d)… Read More »

Let apple(x) be the predicate that x is an apple. Let green(x) be the predicate that the color of x is green. Which of the… Read More »

There are 100 students. 85 chosen Math, 80 chosen Physics, 75 Chosen Chemistry, 70 chosen Biology. What is the minimum number of students choosing all… Read More »

The Network allows computers to connect and communicate with different computers via any medium. LAN, MAN and WAN are the three major types of the… Read More »

Given three positive integers n, k and x. The task is to count the number of different array that can be formed of size n… Read More »

Study the given graphs to answer these questions. The total production is 50 lakh tonnes. Production of wheat in different states of India : What… Read More »

Format specifiers can be defined as the operators which are used in association with printf() function for printing the data that is referred by any… Read More »

Given a division of circle into n pieces as an array of size n. The i-th element of the array denotes the angle of one… Read More »

In mathematics, Sexy Primes are prime numbers that differ from each other by six. For example, the numbers 5 and 11 are both sexy primes,… Read More »

There are many ways to find hostname and IP address of a local machine. Here is a simple method to find hostname and IP address… Read More »

Given three positive integers X, Y and P. Here P denotes the number of turns. Whenever the turn is odd X is multiplied by 2… Read More »

We have to print natural numbers columns wise with decreasing size, depending upon given number of lines as described in the examples below – Examples… Read More »