Strings Rotations of Each Other | GFG POTD | 5 Minutes Code | GeeksForGeeks | DSA

preview_player
Показать описание
Here is the solution to the Strings Rotations of Each Other" GFG problem.
This video is contributed by me, Shikhar Gupta.

Please Like, Comment, and Share the video with your friends.
If this explanation has helped you in understanding this problem, I think the channel deserves a subscribe
Рекомендации по теме
Комментарии
Автор

Please subscribe to the channel and like the video. It will motivate me a lot. ❤❤

minutescode
Автор

Your way of explanation of problem statement and solution is good, but I have a doubt in real time interviews will they accept this solution which is basically using a inbuilt method of strings to find out whether a substring is present in a string or not by getting its index, which was done in 2 lines.

balajib
Автор

Why didnt u mention the reason for using lastIndexOf instead of indexOf function???? indexOf function is failing TLE test case

shaileshshettar