• You forgot using System; to use Math.Pow

  • try to use "^" sign insted of Math.Pow in C#

  • I get this eror: "src/Solution.cs(11,36): error CS0103: The name 'Math' does not exist in the current context"

    but I think c# has Math fuction. and I use "Math.Pow(x, y)" methode.

  • Oh, thanks, my bad, I didn't even try to return the bool.

  • You need to return True or False, not the strings 'true' or 'false'.

    I have updated the description to make this even clearer than before.

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

  • If you remove the long distracting parenthesis from the Wikipedia definition, the sentence reads

    in number theory, a narcissistic number in a given number base b is a number that is the sum of its own digits each raised to the power of the number of digits.

    In the description of this kata, the in a given base is misplaced (is at the end of the sentence) and changes the meaning.

  • You misunderstood what's written there, read it again:

    each raised to the power of the number of digits in a given base

    From wikipedia:

    In number theory, a narcissistic number (also known as a pluperfect digital invariant (PPDI), an Armstrong number (after Michael F. Armstrong) or a plus perfect number) in a given number base b is a number that is the sum of its own digits each raised to the power of the number of digits.

    See the examples. 153 in base 10, has 3 digits.

  • The description of what a narcissistic number is is wrong. It says the digits are to be raised to the power of the digits in a given base, and goes on to explain that the base is 10. So, power of 10?
    You should just copy the definition from Wikipedia - "the sum of its own digits each raised to the power of the number of digits" (in the number, not in the base).

  • nice kata!

  • You are asked to return the amount of stars the piramide in the example has when it has "n" rows.

  • Hi. You're misreading the tests. True is that the description is not clear about the output. You must return the total number directly.

    Test.expect( score( [2, 3, 4, 6, 2] ) == 0, "Should be 0 :-(" );

    means: the output of you function score with the input [2, 3, 4, 6, 2] is expected to be 0, otherwise the log will display "Should be 0 :-(".

    You'll see your code passes basic tests but is failing on attempt tests, but I hope this helps to begin.

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

  • I don't understand what is wanted...

  • That's not what it says, read it again:

    A single die can only be counted once in each roll. For example, a given "5" can only count as part of a triplet (contributing to the 500 points) or as a single 50 points, but not both in the same roll.

    That means you can't count a dice in a triplet as a single dice.

    One 1 => 100 points

    It means a One that's not in a triplet counts as 100 points, you can have at most 2 in a roll. Not that should be only one One in a roll.

  • Loading more items...