Ad
  • Custom User Avatar

    Fixed

  • Custom User Avatar

    May I suggest a couple areas where the explanation could be clearer?

    You may and every feedback is appreciated.

    1. I was confused by the expectation in the tests that after reading (e.g. Take or Drop n items) from a stream, doing that again should return the exact same data.

    In pure functional programming all data is immutable. Accessing references can't change them. I will think about some way to mention that in other languages.

    1. I looked up Fibonacci numbers and turns out it is up to you to define if you want to start with 0 1, or with 1 1. I guessed wrong. :) Not a big deal, but a quick fix also.

    See (starting with 0).

    I will see about point 1. Thanks for your feedback.

  • Custom User Avatar

    Thank you for fixing the issue!

  • Custom User Avatar

    Okay, I fixed the C# version. There was something wrong with the test generation, the reference solutions are all valid.


    It's getting increasingly close to CodeWars Fun: Arrogance, and no, nobody wants to play that.

  • Custom User Avatar

    Yes, it should be ordinal.

    If the sort is not ordinal then your code should've been failed against the example test already.

  • Custom User Avatar

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

  • Custom User Avatar

    Also, for the record, I've just solved the C# version and there are no problems, so the only explanation is that there are problems with your code. You should at least post your code (in spoilers) so that we can agree on where the problem's at.

  • Custom User Avatar

    You can go on and believe that every instance where the test are not passing are problems with the kata, but if you look at the error message:

    Expected string length 9 but was 0. Strings differ at index 0.
    Expected: "[[[[[[[[[", ignoring case
    But was: 
    

    It's written in the open that that you've returned empty string. If you're returning empty string and then claim the tests are broken... everyone would take your "issue" with a grain of salt. That's not how filing an issue works.

  • Custom User Avatar

    This looks like you're returning empty string. Please check your code :)

    Also, next time please raise code problems as a question instead of an issue. Issues are only for problems with the kata itself

  • Default User Avatar

    Can't use only "int."

    Did you read my solution?

  • Default User Avatar

    Maybe you are right but so many guys have passed the kata that I can't change anything now. It is always difficult to work with floating numbers though there are rules which minimize errors; you could have only used "int".

  • Default User Avatar

    Too many guys passed the kata (12,232 as you can see at the top of the page) so now it is not possible to change something.

    Furthermore in the last parts of the example:

    At the end of the 2nd year there will be:
    1070 + 1070 * 0.02 + 50 => 1141 inhabitants (number of inhabitants is an integer)

    At the end of the 3rd year there will be:
    1141 + 1141 * 0.02 + 50 => 1213

    show clearly how the calculation is done.

  • Custom User Avatar

    Word replacements should retain case of their first letter. I have added another line to clarify this.

  • Default User Avatar