DIY: Regular Expression Matching
Understand how to implement regular expression matching in Kotlin by supporting '.' and '*' patterns. Learn to write a function that matches entire strings to given patterns, helping you solve common coding interview problems related to regex.
We'll cover the following...
We'll cover the following...
Problem statement
Suppose you are given an input string s and a pattern p. You have to implement regular expression matching with support for “.” and “*” where:
'.'can match any single