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.
Be careful when you say a one-liner code... because you need quite more lines in order to compute what it is required in the challenge.
Actually I copied/pasted your code in a Java online compiler because I was assuming that with that line you were iterating along the array, and then I realized there were missing lines of code.
Anyway, your line is a nice one.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
Be careful when you say a one-liner code... because you need quite more lines in order to compute what it is required in the challenge.
Actually I copied/pasted your code in a Java online compiler because I was assuming that with that line you were iterating along the array, and then I realized there were missing lines of code.
Anyway, your line is a nice one.