We don't need dsa for this. .map is just a transformation function.
Nice!
This comment is hidden because it contains spoiler information about the solution
Using Math.min with .map is an extra loop instead of just using .reduce
Very nice solution. Loved it. I think we need to know DSA for this right?
Thanks @o2001!
Thanks for your clarification!
Curious why you spread the input since it's a string and you could just split it right? Or, like me, you wherent sure the input is a string or array (question wasn't too clear on that)?
Try to run this test -> yield return new TestCaseData("man i need a taxi tbwi up to ubud").Returns("taxi");
it's good
Haven't thought about that. Nice solution!
Loading collection data...
We don't need dsa for this.
.map is just a transformation function.
Nice!
This comment is hidden because it contains spoiler information about the solution
Using Math.min with .map is an extra loop instead of just using .reduce
Very nice solution. Loved it. I think we need to know DSA for this right?
Thanks @o2001!
Thanks for your clarification!
Curious why you spread the input since it's a string and you could just split it right?
Or, like me, you wherent sure the input is a string or array (question wasn't too clear on that)?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Try to run this test -> yield return new TestCaseData("man i need a taxi tbwi up to ubud").Returns("taxi");
it's good
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Haven't thought about that. Nice solution!
Loading more items...