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
I'd considered this as a possibility but I thought I'd found that ---..-.--- had a different output than ---....---, so I didnt think it would work. Now I'm interested to take another look at it
Give us a substantiation, please.
You have typo in your code and it did not work, It should have been '\0' instead of '\n'.
So the following fix works.
Point taken. I've changed the description.
It is already clear from the example
Thanks for your advice. I will try harder next time.
I found this Kata quite ambiguous. It says that the frequency-values will never be greater than 100, which means that it can be 100 as well. It must say "greater or equal". And also, it must specify that columns are two-space separated from each other. Would have been better to work with a general approach that computes how many spaces the columns have to be separated. For instance, the case
{10, 10, 10, 9, 9, 9}
expects the following answer:but a better answer would be:
This comment is hidden because it contains spoiler information about the solution
The issue that many people experienced is still present
(Assertion `to_postfix(infix) == postfix' failed)
. Consider the following code to fix it: