Solve String Rotation Check using Lua to enhance your skills with lua coding practice , master coding concepts, and prepare for interviews with practical exercises and detailed solutions.
Difficulty : Easy
Categories :
Write a function that checks if one string is a rotation of another string. For example, 'waterbottle' is a rotation of 'erbottlewat'. The function should be case sensitive.
Input: str1 = "hello" str2 = "llohe" Output: true Explanation: "llohe" is a rotation of "hello"
Input: str1 = "apple" str2 = "pleap" Output: true
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.