Solve Wildcard Pattern Matching using Lua to enhance your skills with lua coding practice , master coding concepts, and prepare for interviews with practical exercises and detailed solutions.
Difficulty : Medium
Categories :
Given a string text and a pattern, implement wildcard pattern matching where '?' can match any single character and '*' can match zero or more characters. Return true if the pattern matches the entire text.
Input: text = "hello" pattern = "h?l*o" Output: true Explanation: '?' matches 'e', '*' matches 'l'
Input: text = "world" pattern = "wo*d" Output: true Explanation: '*' matches 'rl'
Input: text = "cat" pattern = "*t" Output: true Explanation: '*' matches 'ca'
Real-World Applications Solve problems inspired by Lua's common use cases, such as game development and embedded systems.
Step-by-Step Guidance Break down Lua's concepts into digestible lessons.
Practical Skills Build hands-on experience with Lua for real-world projects.