I gotta agree with him, that examples provided could have been worked on much more. Like he said, there are some scenarios where the examples are not enough. Improvements could be seen to this Kata. Good on you for mentioning it ivanleoncz.
This is a very clever way of adding the multiples of 3 and 5 without repeating the common multiple. However I can't mark it as a best practice because it forces a traverse through all of the natural number (minus 1). If we're talking about a small input number it's negligeble, but if we're talking about a very high input number then it starts to take a toll.
You don't need to escape the newline character when joining the result, that's why the error message looks like that (it doesn't show the escape slash \)
Hello, and welcome!
This is not a kata issue. Remember that you can visit Codewars Discord for help!
am new to coding.never done it..Anyone wanna help?
Wow, I did not know the function count.
I don't know this method of string
I gotta agree with him, that examples provided could have been worked on much more. Like he said, there are some scenarios where the examples are not enough. Improvements could be seen to this Kata. Good on you for mentioning it ivanleoncz.
Even if I don't really get the point, don't miss that company_id must be return as well as company_name...
I still do not understand when to use .count ... baaackk to W3schools
I... Should have checked all the string methods first...
This is a very clever way of adding the multiples of 3 and 5 without repeating the common multiple. However I can't mark it as a best practice because it forces a traverse through all of the natural number (minus 1). If we're talking about a small input number it's negligeble, but if we're talking about a very high input number then it starts to take a toll.
thank you , I was trying to join('\n')
You don't need to escape the newline character when joining the result, that's why the error message looks like that (it doesn't show the escape slash
\
)In what language? What is your code?
Without knowing this i cant even check where your code is wrong.
I get expected 'aa bb\ncc dd' to equal 'aa bb\ncc dd'
This comment is hidden because it contains spoiler information about the solution
i am unable to pass two tests where markers is empty
Loading more items...