Ad
  • Custom User Avatar

    C++ keeps timing out with different solutions. The problem seems to be a word with over 2000 'a' characters.

  • Custom User Avatar

    In julia many random tests are wrong. For example: add(-5284214779925522942, -5478334000412401012) --> 7684195293371627662.
    And the same for many others.

  • Custom User Avatar

    1.- What if there are no duplicates? What should we return?
    2.- Also, if there is more than one duplicate, which to return?
    3.- Perhaps including 'True'/'False' values i the array could make this kata more challenging.

  • Custom User Avatar

    Hi hobovsky, my solutions do pass all tests and attempts but I can not submit unless I deal with the warning; at least the page does not allows me to submit.

  • Custom User Avatar

    Working with C++. Regardless of what solution I submit (I tried at leats 4 different ones) I always get the error:

    main.cpp:78:30: warning: comparison of integers of different signs: 'int' and 'std::vector::size_type' (aka 'unsigned long') [-Wsign-compare] for(int i = 1; i < numbers.size(); i++).
    

    Even if I just return 0 I still get that error. Can somebody give me some guidence on what's going on?

    Thanks a lot in advance.

  • Default User Avatar

    Thanks! I just cuold not see any other error.

  • Default User Avatar

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