## Number of cycles formed by joining vertices of n sided polygon at the center

Given an N-sided regular polygon, we have connected all the vertices at the center of the polygon, thus dividing the polygon into N equal parts.… Read More »

- What is a Webcrawler and where is it used?
- Last digit of sum of numbers in the given range in the Fibonacci series
- Check if the given string is shuffled substring of another string
- Sort the strings based on the numbers of matchsticks required to represent them
- Longest Palindrome in a String formed by concatenating its prefix and suffix
- Minimum and Maximum of all subarrays of size K using Map
- Check if left and right shift of any string results into given string
- Print the first N terms of the series 6, 28, 66, 120, 190, 276, ...
- Program to print the pattern 1020304017018019020 **50607014015016 ****809012013 ******10011...
- Number of ways to place two queens on a N*N chess-board
- Find the Nth Pure number
- Construct an Array of size N in which sum of odd elements is equal to sum of even elements
- Real time optimized KMP Algorithm for Pattern Searching
- Print Triangle separated pattern
- Program to print a Hollow Triangle inside a Triangle
- Removing string that is an anagram of an earlier string
- Count of total Heads and Tails after N flips in a coin
- Longest palindromic string possible after removal of a substring
- Minimize number of cuts required to break N length stick into N unit length sticks
- Find strings that end with a given suffix
- Convert camel case string to snake case in Java
- Count of binary strings of length N having equal count of 0's and 1's and count of 1's ≥ count of 0's in each prefix substring
- Reverse the substrings of the given String according to the given Array of indices
- Count all sub-strings with weight of characters atmost K
- Count of all unique substrings with non-repeating characters
- How to validate PAN Card number using Regular Expression
- Find length of longest substring with at most K normal characters
- Split the given string into Odds: Digit DP
- Longest substring with atmost K characters from the given set of characters
- Program to build a DFA to accept strings that start and end with same character

Given an N-sided regular polygon, we have connected all the vertices at the center of the polygon, thus dividing the polygon into N equal parts.… Read More »

Given an array of strings arr[] which contains patterns of characters and denoting any set of characters including empty string. The task is to find… Read More »

Given a binary string S, and a substring K, the task is to find the minimum no of steps required to flip the characters in… Read More »

Given a positive N, the task is to find the last two digits of 7N. Examples: Input: N = 5 Output: 07 Explanation: The value… Read More »

Given a string str, the task is to check whether the given string contains 3 or more consecutive identical characters/numbers or not by using Regular… Read More »

Given a number N , the task is to generate the pyramid sequence pattern which contains N pyramids one after the other as shown in… Read More »

Given a set of strings S and a string P, the task is to print all strings from the set with suffix P. Examples: Input:… Read More »

Given a binary string str, the task is to build a DFA that accepts the string if the string either starts with “01” or ends… Read More »

Given a string str, the task is to check whether the given string is valid MAC address or not by using Regular Expression. A valid… Read More »

Given a string str, the task is to check whether the given string is valid GUID (Globally Unique Identifier) or not by using Regular Expression.… Read More »

Given two integers R and C, the task is to find the element at the Rth row and Cth column. Pattern: First Element of ith… Read More »

Given a string str, the task is to check whether the given string is valid Indian driving license number or not by using Regular Expression.… Read More »

Given a number N, the task is to print the Nth Hogben number. Hogben Number: In a spiral arrangement of the integers, Hogben Numbers appear… Read More »

Given an array arr[] of N integers, the task is to count the number of clumps in the given array. Clump is defined as a… Read More »

Given an array arr[] of length N and a number K, the task is to count the number of K-countdowns in the array. A contiguous… Read More »