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.
i agree to you
then don't use it
so when count is used in a comparison, it appears as soon as the conditional fails it stops rather than counting the entire array and then comparing. I used count strictly to find the amount and my solution timed out and had to implement another way.
reminds me of a manager I had. no matter the task, always ended it with "Should be easy".
Ou, now I got that part of the task right :) Then it's easier than I expected. Thanks!
That's the error message, the first value is what your function wrongly returned and the other one is the expected value, print the input to debug your code.
You forgot that.
I am not sure if this test case is explained in the desription:
['EAST', 'EAST', 'NORTH', 'WEST'] should equal ['EAST', 'NORTH']
I will post exact text from the Details
*Write a function dirReduc which will take an array of strings and returns an array of strings with the needless directions removed (W<->E or S<->N side by side)
----Side BY Side is the main ingredient----
*In ["NORTH", "EAST", "WEST", "SOUTH", "WEST", "WEST"], "NORTH" and "SOUTH" are not directly opposite but they become directly opposite after the reduction of "EAST" and "WEST" so the whole path is reducible to ["WEST", "WEST"].
----Again North and South were cancelled, because East and West are Side By Side----
There are no Side By Side cancellations in ['EAST', 'EAST', 'NORTH', 'WEST'].
Please copy and paste the text from the Details that explains this test case
added in C
Buckethead mentioned, now I have to pass this kata. I wonder what anagrams we can make out of Shawn Lane, Allan Holdsworth, John McGlaughlin, Joe Pass, Wes Montgomery, Pat Metheny, and Dave Fiuczynski
Got it! OK, it wasn't clear to me, but I see we can't approach this from a position standpoint now. Thanks for clarifying.
No, and read the notes:
Where do you see that? There are no errors in the tests that are the same in all languages (kata passsed by 49 people in Julia out of a total of 66,386).
strong suggestion ~ I updated my recent translation for this! thanks
The description is that all eggs after consonants are supposed to be removed.
It would make sense to have a few test with a vowel (or another character) followed by 'egg'.
'neggo egg' => 'no egg'
Loading more items...