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.
"... returns an array of strings containing the coded string in 5 parts ..."
Unless this is intended to be the main difficulty aspect of the kata, it is completely unnecessary and it makes the kata significantly more difficult.
Because opposite directions aren't side by side. Do you end up in the same place? Yes (if the path is plain), but to eliminate them they should be side by side, or after some elimination, become as such, that's a requirement.
Can someone explain to me why the path ["NORTH", "WEST", "SOUTH", "EAST"] is not reducible even though you end up at the same place? That seems to be the point of this kata
Let me work with this pretending ive not read the atrocities written by the outhor
Came back to refresh my memory in python after a long time out and every time i read
Find max(abs(length(x) โ length(y)))
i just got more dumberThis comment is hidden because it contains spoiler information about the solution
I don't know why everyone says this is too easy for a 5kyu challenge. I've completed some 3kyu challenges that were easier than this one๐
This comment is hidden because it contains spoiler information about the solution
omg i feel stupid
This comment is hidden because it contains spoiler information about the solution
umm... why am i asked to put a boolean true or false into a unsigned long long vector
i thought that isn't allowed ???
For 5 testcase in golang i used
int(math.Round(sum-priceNew))
for correct round.I don't understand the description
oh, it was bool() what I was looking for. So simple and I didn't figure it out.
Great practice ! But for advanced use case , consider to use HashMap , so the time complexity will be O(n) for optimizing the performance with large data .
Loading more items...