Ad
  • Default User Avatar

    C

    Description says "return an empty array if your array is empty", but tests require null to be returned.

  • Custom User Avatar

    Read the description again:

    Your result can only contain single digit numbers, so if adding a digit with its position gives you a multiple-digit number, only the last digit of the number should be returned.

    And specially the last example.

    The test is fine:

        test("Testing for [3, 6, 9, 8, 9]", () {
          expect(incrementer([3, 6, 9, 8, 9]), equals([4, 8, 2, 2, 4]));
        });
    
  • Default User Avatar

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

  • Default User Avatar

    00800 is a palindrome in 500800

    030 is a palindrome in 694030

  • Custom User Avatar

    Retired.

  • Custom User Avatar

    Retirement is final. See the post below, there were similar katas to this one, you can complete those.

  • Custom User Avatar

    So sorry to figure out that this kata is retired after I solved it, pleas activate it back, it is so nice one

  • Custom User Avatar

    Retired.

  • Default User Avatar

    Since the tests do not take into account the conditions for the addition of new chickens, perhaps the description should be changed/shortened accordingly and this kata should be translated into 7kyu

    Ronald's uncle left him 3 fertile chickens in his will. When life gives you chickens, you start a business selling chicken eggs which is exactly what Ronald decided to do.

    A chicken lays 300 eggs in its first year. However, each chicken's egg production decreases by 20% every following year (rounded down) until when it dies (after laying its quota of eggs).

    Your Task:

    For a given year, and life span of chicken span, calculate how many eggs Ronald's chickens will lay him

    If year=0, make sure to return "No chickens yet!".

    Note:

    1.Let's assume all calculations are made at the end of the year so don't bother taking eggs laid per month into consideration.

    1. Each chicken's egg production goes down by 20% each year, NOT the total number of eggs produced by each 'batch' of chickens. While this might appear to be the same thing, it doesn't once non-integers come into play so take care that this is reflected in your kata!
  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/124.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/114.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Custom User Avatar
  • Custom User Avatar

    Read the description again, you're not asked to check if the input is a palindrome number.

  • Custom User Avatar

    I don't fully understand the question here. How come 1251 can be a palindrome number?

  • Default User Avatar

    Good one. I will try to remember that code to future tasks

  • Loading more items...