Eniya G’s Post

View profile for Eniya G, graphic

Aspiring fullstack developer

🚀 Day 60 - Leetcode Challenge: Rotate String 🚀 Today, I solved the "Rotate String" problem, where the goal is to check if one string is a rotation of another. The optimal solution involves concatenating string A with itself, then checking if string B is a substring of this new string. This approach runs in O(n) time, making it far more efficient than brute force methods. This problem reinforced the importance of string manipulation and optimization in coding challenges. Excited to keep learning and improving! #Leetcode #ProblemSolving

  • graphical user interface, application

To view or add a comment, sign in

Explore topics