Skip to content

Category Archives: Pattern Searching

Given a string str denoting a sequence of moves. The task is to check if the moves are repeated an infinite number of times then… Read More
The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in… Read More
Given a pattern ‘pattern‘ and a sentence ‘s‘, the task is to check if the words in the given sentence occur based on the pattern… Read More
Given a String ph[], the task is to find a new number for the user, based on following conditions:   The new number will also start… Read More
Given a positive integer n, the task is to find the sum of series  8/10 + 8/100 + 8/1000 + 8/10000. . . till Nth… Read More
Given that Concentric circle of radii 1,2,3,4……….N cm are drawn. The interior of the smallest circle is colored white and angular regions are colored alternately… Read More
Given a number N, and an integer K. The task is to distribute N in a sequence such that the first K numbers of the… Read More
Given a positive integer N, the task is to find Nth term of the series: 1, 3, 7, 15, 31, ….. Examples: Input: N =… Read More
Given a positive integer, n. Find the sum of the first n term of the series: 1, 4, 13, 40, 121, ….. Examples: Input: n… Read More
Given an integer N which depicts the number of stairs, the task is to count the number of ways to reach Nth stair by taking… Read More
Given two integers N and K, where N represents a diamond pattern with (2 * N) -1 rows, the task is to find the index… Read More
Given a positive integer N. The task is to find Nth term of the series 3, 7, 14, 27, 52, ….. Examples: Input: N =… Read More
Given a positive integer N. The task is to find Nth term of the series: 4, 11, 30, 85, 248… Examples: Input: N = 4Output:… Read More
Given a positive integer N. The task is to find Nth term of the series: 1, 2, 6, 21, 88, 445, . . . Examples:… Read More
Given a positive integer, N. Find the sum of the first N term of the series 12, 14, 24, 58, 164, ….. Examples: Input: N… Read More

Start Your Coding Journey Now!