## 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 »

## Bootstrap | Carousel

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 »

## GATE | GATE CS Mock 2018 | Question 13

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 »

## GATE | GATE CS Mock 2018 | Question 12

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 »

## GATE | GATE CS Mock 2018 | Question 11

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 »

## GATE | GATE CS Mock 2018 | Question 10

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 »

## Computer Network | Types of area networks – LAN, MAN and WAN

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 »

## Count of arrays having consecutive element with different values

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 »

## GATE | GATE CS Mock 2018 | Question 9

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 »

## Variations of “%d” Format Specifier in C

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 »

## Program to find smallest difference of angles of two parts of a given circle

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 »

## Sexy Prime

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 »

## Display Hostname and IP address in Python

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 »

## Even-odd turn game with two integers

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 »

## Program to print numbers columns wise

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 »