Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The problem statement strictly says 2 words. Although what you elude to is good practice, if you know for a fact your input is two words here, you can write a strict function.
ignore this one. I refactored it
Not a bad solution, but as David said, learn the higher order methods on arrays and also, you can do this in linear time instead of O(n^2) if you use a map()/object{} to store your occurences as you go.
You traded time for space in your solutionl. Try to switch that such that you trade spcae for time such that you bring down running time but it takes a little more space.
See my solution , if you can (new here) if you want an idea
Good solution. I always forget that logical 'or' implies either or, or both are true. Time to refactor LOL
Read it here
Oh Sorry. I'm newbie here and I will aware this not to do that mistake again. Also, thank you for your suggestion.And can i know that how many points are required to level up to another kyu.....
Not a kata issue, use
Question
label when your code doesn't work. Also, mark your post as having spoiler content when posting code like that and check how to use markdown formatting so your code keeps indentationNo, it's not, your string has a trailing space you should get rid of.
This comment is hidden because it contains spoiler information about the solution
New here and started today. I did not know how this platform works, thanks
This comment is hidden because it contains spoiler information about the solution
We can see your solution here, no need to post it.
This comment is hidden because it contains spoiler information about the solution