## Check if a binary string contains consecutive same or not

Given a binary string str consisting of characters ‘0’ and ‘1’. The task is to find whether the string is valid or not. A string… Read More »

- Find the sum of digits of a number at even and odd places
- How to learn Pattern printing easily?
- Replace array elements by sum of next two consecutive elements
- Program to calculate product of digits of a number
- Difference between while and do-while loop in C, C++, Java
- Check if it is possible to create a polygon with given n sides
- Print last character of each word in a string
- Difference between High Level and Low level languages
- Menu-Driven Program for Bank Management System
- Find the hypotenuse of a right angled triangle with given two sides
- Print the first and last character of each word in a String
- Sum of all perfect numbers present in an array
- Number of character corrections in the given strings to make them equal
- Reorder the position of the words in alphabetical order
- Program to duplicate Vowels in String
- Sum of all palindrome numbers present in an Array
- Sum of all mersenne numbers present in an array
- Program to parse the Molecules and get the Atoms count
- Count the number of currency notes needed
- Find sum of factorials in an array
- Program to find the Encrypted word
- Python program for word guessing game
- Find the area of the shaded region formed by the intersection of four semicircles in a square
- Difference between for and while loop in C, C++, Java
- Check if the first and last digit of number N is prime and their sum is less than K
- Python | Scramble words from a text file
- Difference between for and do-while loop in C, C++, Java
- Program to Encrypt a String using ! and @
- Print the season name of the year based on the month number
- What is an Expression and What are the types of Expressions?

Given a binary string str consisting of characters ‘0’ and ‘1’. The task is to find whether the string is valid or not. A string… Read More »

Given three integer n, m and k, the task is to find the smallest integer > n such that digit m appears exactly k times… Read More »

Given two integers n and g, the task is to generate an increasing sequence of n integers such that: The gcd of all the elements… Read More »

Given two integers a and b. Now, c can be found as a + b = c. The task is to check if the equation… Read More »

Given an integer N and a pizza which can be cut into pieces, each cut should be a straight line going from the center of… Read More »

Given an integer N, the task is to check whether the number is divisible by the sum of its digits or not. If divisible, then… Read More »

Given an integer num, the task is to count the number of holes in that number. The holes in each digit are given below: Digit… Read More »

Given an integer X and a square matrix mat[][], the task is to remove the first X rows and columns from the given matrix and… Read More »

Given an empty glass, this glass has to be filled with water and the task is to find the maximum amount of water that the… Read More »

Let’s see a basic linear search operation on Python list and tuples. A simple approach is to do linear search, i.e Start from the leftmost… Read More »

Given a character, the task is to check whether the given character is in upper case, lower case or non-alphabetic character Examples: Input: ch =… Read More »

Given a number . The task is to print the multiples of the unit digit of N from the unit digit of N to N.… Read More »

Given Mth and Nth term of a Geometric progression. Find its Pth term. Examples: Input: m = 10, n = 5, mth = 2560, nth… Read More »

print(): print() method in Java is used to display a text on the console. This text is passed as the parameter to this method in… Read More »

Given Mth and Nth term of an arithmetic progression. The task is to find the sum of its first p terms. Examples: Input: m =… Read More »