Given a string S of length N, the task is to check whether it is possible to partition the string S into two disjoint non-empty… Read More
Category Archives: Algorithms
GIT stands for GLOBAL INFORMATION TRACKER.Given some Git repositories, the task is to check if they are valid or not using regular expressions. Rules for… Read More
Given some Postman APIs, the task is to check if they are valid or not using regular expressions. Rules for the valid API: It is… Read More
Given some Weekdays, the task is to check if they are valid or not using regular expressions. Rules for the valid Weekdays : It should… Read More
Given some Corporate Identification Number, the task is to check if they are valid or not using regular expressions. Rules for the valid CIN are: … Read More
You are given an arr[] of length N, containing positive integers. Then the task is to find the winner when two players are playing the… Read More
Given some Flight Numbers, the task is to check if they are valid or not using regular expressions. Rules for the valid flight numbers are: … Read More
Given some Legal Identity Identifier, the task is to check if they are valid or not using regular expressions. Rules for the valid LEI are: … Read More
Given a tree with N node and N-1 edges and an array arr[] where arr[i] denotes the value of ith node, the task is to find… Read More
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
Given an array item[] representing type, weight, and profit of N items, the task is to maximize the profit by picking different types of elements… Read More
Given a string S of length N, the task is to find the minimum number of moves required to make a string palindrome where in… Read More
Bunty and Dolly are playing a game, described as follows:There are two boxes having A and B number of chocolates respectively. Both can eat L… Read More
What is tail recursion? Tail recursion is defined as a recursive function in which the recursive call is the last statement that is executed by… Read More
Given two arrays X[] and Y[] of length N along with Q queries each of type [L, R] that denotes the subarray of X[] from… Read More