Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Due to performance issue, it is recommended that you use "new String[0]" and not ArrayList.size().
Reference: https://stackoverflow.com/questions/4042434/converting-arrayliststring-to-string-in-java
What on earth does the person mean? He should stop learning coding and start learning English.
Perhaps!
Got me really confused for a while
Obviously HackerRank, being a competitive programming site, will impose performance requirements. So unless you write the (roughly) most performant algorithm, it will not pass there.
It is surprising how this solution works well on Codewars but fails all the testcases on HackerRank.
White converting a list holding Strings to a String array like so, list.toArray(new String[0]), what is the significance of new String[0]? Why wouldn't list.size() work as a parameter?
Just curious.. What does new String[0] do here? Would it be wrong to have result.size() as a parameter? Your response will be very much appreciated. Thank you!
Thank you very much!
You can go under Kata/Completed in your profile to see all completed katas. If you want the code, you can open an already completed kata and choose "Past Solutions" in the left side with Instructions and Output. Solutions/Completed on your profile also work.
I am getting an error in the first test case when I hit the submit button. Is it because I am using "int" datatype(Java)?
Wow sir! Such brilliance! Someone give this guy a medal.
Is there a way to view your previously solved Katas? Thanks!!