Ad
  • Custom User Avatar

    Oh, it`s so lovely to hear such pleasant words. Still, we all have where to grow - good luck to u on that way! Sure your solutions will become awsome in a short time.

  • Default User Avatar

    I always kick myself after coming up with a convoluted way of doing these things and see a solution like yours that makes it look so simple! Well done

  • Custom User Avatar

    This:

    for (String key : map.keySet()) {
    if (numArray[i].toLowerCase().equals(key)) {

    can be replaced by this:

    if(map.containsKey(numArray[i]))

    It will be much faster.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Im finally understood it. Sorry

  • Custom User Avatar

    Yes, the expected results are ok and you're returning them wrong, analyze why. You're not using all bills to give change it seems.

  • Custom User Avatar

    Test 6 with data 25 25 50 100 returns YES when there is actually NO answer. Same for test 17 with data 25 25 25 25 50 100 50 and it returns YES when actually there is NO. Am I really calculated it wrong?

  • Custom User Avatar

    Print the input, the tests are ok. When the problem is in your code, use Question label instead.

    C# Completions 3345

  • Custom User Avatar

    Im passed all the tests exluding 6 and 17 ones using C#. Is there a way to look at this tests? How can I figure out what is wrong with my program?
    UPD: Test 17: Log 25 25 50 100; My result: NO; Test: YES.

  • Custom User Avatar

    Same not an issue as others. All tests are correct.

  • Custom User Avatar

    Same issue as others, test cases throwing NO should equal YES incorrectly.

  • Custom User Avatar

    In Java, how solution with summing revenue have passed? Add test [25,50,50], please, cause some solutions seems to say "YES" in that case, but were accepted.