oh on second thought - my code works for what I thought I was solving.. but I think I misinterpreted the problem.
The examples given support my first concept of what I was trying to solve so it threw me off. I finally completed this kata and it is simple, just very easy to go off course if you are like me and try to come to a conclusion early :)
This comment is hidden because it contains spoiler information about the solution
this does not even compile, please use some formatting to post your code:
https://docs.codewars.com/training/troubleshooting/#post-discourse
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
oh on second thought - my code works for what I thought I was solving.. but I think I misinterpreted the problem.
The examples given support my first concept of what I was trying to solve so it threw me off. I finally completed this kata and it is simple, just very easy to go off course if you are like me and try to come to a conclusion early :)
This comment is hidden because it contains spoiler information about the solution
I was totally over thinking this.. thought you had to pass the args into the function so it wouldn't let me pass any tests.
This comment is hidden because it contains spoiler information about the solution
There's an extra new-line character at the end of the result from your function.
Also, next time you post your code in the discourse, mark it as spoiler.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution