This comment is hidden because it contains spoiler information about the solution
It's output [1] in my terminal
Please use spoiler flag next time.
NaN is not a string. According to the description, only strings should be filtered out.
Thank you for praising my kata, it was very pleasant to read it. All the best to you!
Not a kata issue:
The restriction is that the characters in part1 and part2 should be in the same order as in s.
Your code ignores the original order.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
It's output [1] in my terminal
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
NaN is not a string. According to the description, only strings should be filtered out.
Thank you for praising my kata, it was very pleasant to read it. All the best to you!
Not a kata issue:
Your code ignores the original order.