Hello Everyone!
I studied string hashing for this problem and found a good way to do it in C++ for the problem Chef Chefina and Their Friendship.
I have made a video on my channel explaining so.
Check it out here
Thank You!
3 Likes