Ad
  • Custom User Avatar

    In My kata you are finding the MISSING number, on top of that, you are finding the LOWEST MISSING number

    No, it's the same task: iterate from 1 upwards until you find a number that doesn't appear in the input array.

    Edit 1: After looking at the kata I linked again I can see that they're not the same but that doesn't really change anything. There're already numerous similar tasks on CW, and "find the first number that appears 0 times" is hardly different from "find the first number that appears 2 times" (and I think that an exact same task exists somewhere anyway).

    Edit 2: Here's a kata with an exactly same task - https://www.codewars.com/kata/57f5e7bd60d0a0cfd900032d.

  • Custom User Avatar

    No problem at all. I made a ton of mistakes writing mine. All the issues on this kata are opportunities to learn how to do it the right way.

  • Custom User Avatar

    First two points...
    --My first publish, I will be adding to it. (EDIT: ITS been retired so maybe I wont. LOL.)

    Third Point.
    --I do not agree on the duplicate. In that Kata you are finding the DUPLICATED number.
    In My kata you are finding the MISSING number, on top of that, you are finding the LOWEST MISSING number.

    Will the code be similar? maybe. The theory here is called "Multiple Methods"
    In helps to have problems worded differently so we work then in different ways.
    And in this case the input is different.

  • Custom User Avatar

    This is my first publish. I am still a little confused on exactly what to do.
    That was a mistake. Thanks for informing me.

  • Custom User Avatar

    You gave your solution in the initial solition. All someone has to do is click the button and they solved it.

  • Custom User Avatar

    Agreed, on all points.

  • Custom User Avatar
    • No sample tests
    • No random tests
    • Effectively a duplicate of this kata
  • Default User Avatar
  • Custom User Avatar

    Have you tried a regex?
    /[a-zA-Z0-9.@]/gm

    Also, besides letters, numbers, and the two characters you included (. and @).
    Alot of other chars are allowed. i.e. (!#$%&'*+-/=?^_`{|}~ etc)