Given a string Time Format, the task is to check whether the string follows the time formats “HH: MM: SS” or “HH: MM” using Regular Expression.… Read More
Category Archives: Pattern Searching
Given some programming file names, the task is to check if they are valid or not using regular expressions. A valid programming file name follows… Read More
Voter ID card is also known as EPIC (Electors Photo Identity Card). EPIC is an identification proof for Indian citizens over the age of 18.Given… Read More
Given some Phone Numbers, the task is to check if they are valid or not using regular expressions. Rules for the valid phone numbers are: … Read More
Given some words of Gender, the task is to check if they are valid or not using regular expressions. The correct responses can be as… Read More
Given some UPI IDs, the task is to check if they are valid or not using regular expressions. Rules for the valid UPI ID: UPI… Read More
ISIN stands for International Securities Identification Number. Given string str, the task is to check whether the given string is a valid ISIN(International Securities Identification… Read More
Given two arrays of strings containing words[] and queries[] having N and Q strings respectively, the task is to find the number of strings from… Read More
Pattern searching is an algorithm that involves searching for patterns such as strings, words, images, etc. We use certain algorithms to do the search process.… Read More
Given numeric string str, the task is to remove all the leading zeros from a given string. If the string contains only zeros, then print… Read More
Given a string str, the task is to validate if this string represents an Indian vehicle number. A Number Plate consists of three parts :… Read More
Given an array stream of n integers in the form of a stream, the task is to find the minimum number of operations that are… Read More
Given a number N, the task is to find a permutation A[] of first N integers such that the absolute difference of adjacent elements is… Read More
Given a matrix of size N*M, the task is to find the product of all possible pairs of (i, j) where i and j are… Read More
Print a ‘Y’ shaped pattern from asterisks in N number of lines. Examples: Input: N = 12Output: * * * … Read More