We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I can understand the code as it is giving the output but how is it considering all the permutations of the words and assigning the score. I cant understand the logic behind the code can someone please explain the code. Please as i have been trying to relate this code to the problem for a couple of hours and i havent understood the logic
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Minion Game
You are viewing a single comment's thread. Return to all comments →
I can understand the code as it is giving the output but how is it considering all the permutations of the words and assigning the score. I cant understand the logic behind the code can someone please explain the code. Please as i have been trying to relate this code to the problem for a couple of hours and i havent understood the logic