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.
My implementation in Scala fails time constraint on case 9. I can use mutable structures (e.g. Java collections, that Scala supports as is) to achieve much better performance but IMHO this is not what functional programming is used for. Maybe I'm wrong here, though...
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Prison Transport
You are viewing a single comment's thread. Return to all comments →
My implementation in Scala fails time constraint on case 9. I can use mutable structures (e.g. Java collections, that Scala supports as is) to achieve much better performance but IMHO this is not what functional programming is used for. Maybe I'm wrong here, though...