Problem Statement: Given two strings s and t of lengths m and n respectively, return the minimum window substring of
Continue readingCategory: String
Palindromic substrings
Given a string s, return the number of palindromic substrings in it. A string is a palindrome when it reads the
Continue readingWord Search – Leetcode
Given an m x n grid of characters board and a string word, return true if the word exists in
Continue readingLexicographic Rank of a String
Problem Statement: You are given a string, find its lexicographical rank among all its permutations. Example: Example 1: Input: S
Continue readingstrcpy in C
Problem Statment: Given two Strings copy the contents of one string to another. Example 1: Input: str1=”Takeuforward”, str2=”” Output: str2=Takeuforward
Continue readingString Concatenation in C
Problem Statment: Given two Strings concatenate one string to another and print the result. Examples: Example 1: Input: str1=”Take”, str2=”uforward”
Continue readingReverse String in C
Problem Statement: Given a String, reverse the string and print it. Example 1: Input: str = “Takeuforward” Output: drawrofuekat Example
Continue readingRabin Karp Algorithm – Pattern Searching
Problem: Given a text and a pattern, write a function that prints all the occurrences of the pattern in the
Continue readingKMP Algorithm
Problem Statement: Implement the Knuth-Morris-Pratt KMP string matching algorithm. Examples: Example 1: Input: String = ”aaaaaaaamaaaaaab” and Pattern = “aaaaaab”
Continue readingIntroduction to Pattern Searching : Strings
Pattern searching is a crucial topic in Pattern recognition, which is a key component of AI. Artificial Intelligence (AI) is
Continue reading