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.
Nice.. I like how you have used comments to show exactly what the base cases and recursive cases are. Also, writing the three recursive cases on three separate lines makes the solution neater and easier to read. 10/10
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java 1D Array (Part 2)
You are viewing a single comment's thread. Return to all comments →
Nice.. I like how you have used comments to show exactly what the base cases and recursive cases are. Also, writing the three recursive cases on three separate lines makes the solution neater and easier to read. 10/10