Ad
  • Custom User Avatar

    Making my head hurt. Thats so many variables to keep track of haha. But this is super efficient so can't hate

  • Default User Avatar

    Argument in Split method is redundant in this case.

  • Custom User Avatar

    I modified the description. It seems that the confusion was only for a few ones:-) Maybe you could have a look to tell me if it suits you.
    Have a good day.

  • Custom User Avatar

    Well, see computerguy103's comment below:

    Okay then can the description be edited to indicate which languages should eliminate duplicates, and which shouldn't worry about them?

    At this point, you're the only one who can fix the confusion (and use this chance to add formatting to the description).

  • Custom User Avatar

    Read what Zozo said below. I didn't mention duplicates; it was your idea when you did the HS translation...

  • Custom User Avatar

    @g964: However, if you mention them explicitly, make sure to handle them in your tests. :D

    (Yeah, 500+ solutions and so on, I know)

  • Custom User Avatar

    Thanks for the feedback but read posts below about duplicates:-)

  • Custom User Avatar

    May need an extra unit test to ensure that there aren't duplicates. I passed this in Java and I realized after looking at the other solutions that I didnt use the distinct function on my stream to remove any duplicates. Just a heads up