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.
This comment is hidden because it contains spoiler information about the solution
yes, marking it as having spoiler content
Hi! Thank you!
Post your solution here, if you want (marking it as having spoiler content) and we can try to find the error
Your car 'c' on main road correctly gave way to 1 car 'A' entering from side street.
The next car 'd' on main road should have done same, but it did not.
So you did not follow the rule of Kata descriptio:
Same for me, this message drived me to my solution ! So it's somewhat a spoiler, but I don't tag it as it is more a helper ;)
Thanks for completing my friend!
Maybe there could be some helper function that takes a message polynomial and prints the expected EC numbers (maybe even each step)? IDK if this could be used to cheat calculating it though.
It should always be 8 steps.
How would you solve that? I can't think of a good idea tbh
That is really strange, you aren't even calling htmlize, are you?
You were right, I fixed both things. Feel free try to ask again, if possible under the other kata, otherwise I get confused :))
Have a nice day
Good job, thanks for completing, now you could try creating a QrCode! :)
Try googling
"Big O notation"
(it's a long subject to explain it here), your code should work in linear time. Your current code has a loop and a loop-alike method inside, that's quadratic in time.Your code's time complexity is O(n2) that won't work here. You code's time complexity should be O(n) to pass.
When you post solutions or even half solutions, mark your post as having "spoiler content" next time. I've already set this one to spoiler.
Just sounds like you are trying to manipulate an empty string? you are probably trying to access the first letter but since the string is empty you get an index out of range