https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Cheatsheet
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
This is brief:
https://www.w3schools.com/jsref/jsref_obj_regexp.asp
this was hard for me as a beginner, took me like 5 hours to figure out
8 kyu and I can't complete this task :\
It's one of the oldest katas on the site so ranking/difficulty grading is a bit out of date.
Besides, if you think it is too easy; why not try to solve it in O(1) rather than your O(n) solution which times out for inputs ~ 100,000,000 ?
100,000,000
Loading collection data...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Cheatsheet
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
This is brief:
https://www.w3schools.com/jsref/jsref_obj_regexp.asp
this was hard for me as a beginner, took me like 5 hours to figure out
8 kyu and I can't complete this task :\
It's one of the oldest katas on the site so ranking/difficulty grading is a bit out of date.
Besides, if you think it is too easy; why not try to solve it in O(1) rather than your O(n) solution which times out for inputs ~
100,000,000
?