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.
Can you please explain the logic, why does this works? I tried to look at editorial and setter's code. But couldn't understand it since I don't know functional programming.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bitter Chocolate
You are viewing a single comment's thread. Return to all comments →
Can you please explain the logic, why does this works? I tried to look at editorial and setter's code. But couldn't understand it since I don't know functional programming.