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.
like i said in my original post, this kata is solve-able by using basic algorithm. You can use library if you want, but by solve it using basic code, the coder will understand how the data flow. The result code might be longer, but it is good learning medium. Then again if the purpose of the coder is want to write code as short as possible then its a different matter.
I'd argue the algorithms in the functions you've listed are pretty obvious (they're all wrappers over a single loop), and that knowing how to use these tools together is more important, but I guess that's just subjective
On the contrary beginner needs to know how fundamental algorithm works. Nothing wrong if you want to use library, but know how to do the same function without using the libray is very useful, especially you need to learn another programming language.
Wrong. By using the libraries of your respective language, you are:
This is really bad advice to give to beginners. The only time I can see this advice as being sensible is if none of the tools in the library offer suitable abstractions for the problem and you're then putting a circle in a square hole.
This comment is hidden because it contains spoiler information about the solution
this is the best practices imho, without any library.
ah yes, thanks!
Read this: https://docs.codewars.com/training/troubleshooting#print-input
This comment is hidden because it contains spoiler information about the solution
Because it's already there at the end of it.
Manage to finish. I must refactor my code to acomodate to new knowledge that you will only get from the testing parameter, why not just incorporate this one example { "NORTH", "WEST", "SOUTH", "EAST" } to the description?
try to remove the break;
in java, break after return resulting in error. I see you use javascript, might be the same.
no need complex solution to solve this kata, simple brute force method is viable.
Yeah thanks, thats the problem. i forget to sort it. All good now.
But it is not correct? The example shows that expected answer is not
[3, 2, 1, 7, 9, 8, 6, 4, 5]
, but something else?There is this example in description:
What does your solution return locally for the above input?
Loading more items...