Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
No, it's the same task: iterate from1
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.
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.
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.
This is my first publish. I am still a little confused on exactly what to do.
That was a mistake. Thanks for informing me.
You gave your solution in the initial solition. All someone has to do is click the button and they solved it.
Agreed, on all points.
Here is the standard:
https://www.ietf.org/rfc/rfc5322.txt
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)