Ad
  • Custom User Avatar

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

  • Custom User Avatar

    If no numbers equal "target", it would raise an exception with "index out of bound" on the inner loop.
    Not very durable. Maybe that should of been one of the tests?!

  • Custom User Avatar

    If anyone has issues with testing or submitting with errors like:
    tests/Fixture.cs(16,30): error CS0120: An object reference is required for the non-static field, method, or property 'Kata.CustomChristmasTree(string, int)'

    You simply need to make the method CustomChristmasTree(string chars, int n) into a static method.

    i.e.
    public static string CustomChristmasTree(string chars, int n)