7 kyu

Odd or Even? Determine that!

268 of 2,241ngntrgduc
Description
Loading description...
Mathematics
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ArielBenichou Avatar

    This comment has been hidden.

  • akar-0 Avatar
  • FArekkusu Avatar
  • FArekkusu Avatar

    The issue with performance requirements is still not fixed.

  • FArekkusu Avatar

    There're no performance requirements in C++ whatsoever.

  • FArekkusu Avatar

    The performance requirements are vastly different across the languages.

  • UNarium Avatar

    This comment has been hidden.

  • Anatoliy Trots Avatar

    Tests are successful, but when I click "Attempt" I got this:

    Test Results: Execution Timed Out STDERR Execution Timed Out (12000 ms)

    I don't see another way to code this programm. HELP!

    PYTHON

  • FArekkusu Avatar

    Note: Python has no Preloaded

    And what's the point of this note?

  • FArekkusu Avatar

    The performance requirements are vastly different across the languages.

  • JohanWiltink Avatar

    Haskell translation

    Approving will not affect the Python translation, because this translation does not change the description.

  • dinglemouse Avatar

    Wording in Kata description:

    ... so the sum of them are alway odd/even.

    Should be "is always" instead of "are alway"

  • JohanWiltink Avatar

    Odd or Even? Guess it!

    There is no guessing involved. I would suggest to change the title to either "Odd or Even?" ( which might already exist ) or something like "Odd or even? Determine that!", or "What's the parity?" Actually, I like the parity one best.

  • JohanWiltink Avatar

    JavaScript translation

    Note that this translation changes the description! Make sure you agree with what you are approving.

    This translation keeps existing languages intact, but will cause merge conflicts for other pending translations.

  • FArekkusu Avatar

    The input range is much bigger in C and NASM than in C++.

  • FArekkusu Avatar

    The user can still modify the input. Why was this issue resolved without being fixed again?

  • FArekkusu Avatar

    The input type should be unsigned.

  • FArekkusu Avatar

    Please, follow the Unnamed's suggestion and use an enum/enum class instead of strings.

  • FArekkusu Avatar

    If the sum can be odd or even ( It depend on the first number you choose ), return Both

    It should be Either or something like Indeterminate, but not Both.

  • ejini战神 Avatar

    The description should be formatted properly by using code blocks

    The function name should be ommited too to prevent description conflict when more translations are approved in the future

  • ejini战神 Avatar

    Missing #include <string> headers in initial solution and random test section

  • Unnamed Avatar

    The result probably should be an enum instead of magic numbers.

  • FArekkusu Avatar

    This issue was not fixed.

  • rowcased Avatar

    This was done for a laugh, but I guess it doesn't much matter that the input range is what it is?

  • FArekkusu Avatar

    Fixture is missing the include statements.

  • FArekkusu Avatar

    The user can modify the input.

  • FArekkusu Avatar

    The reference solution should be inside a describe block.

  • FArekkusu Avatar

    random header functionality should be used instead of plain rand(). Also, it's not even seeded.

  • FArekkusu Avatar

    Considering how small the input range is, all possible values should be tested. Although, I'd say getting rid of the [1; 100] range limitation and adding proper random tests would be a better option.

  • dfhwze Avatar

    small issues:

    • typo: It denped on the first number you choose
    • The note (NOTE : Supposing that all numbers are greater than 0.) is redundant, because of the spec (Given a number N ( 1 <= N <= 100 ))
  • dfhwze Avatar

    You should add random tests.