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.
Thanks for the explanation. I was trying to work out a formula to simplify my solution but gave up.
I loved this Kata. Had to rewrite my code 3 times to get it working hahaha. Learned a lot!
L and M are not referring to categories. They are referring to your input variables. So if no books are given or no categories to return in a Haskell string format, then return and empty string.
Thank you for the reply!
I remain a little confused..So, as you describe it, category W should be 0 because there are no codes associated with it right? However, you also say that if a category (L or M) is empty (in other words no codes are associated with it) then an empty string should be returned?
I get it now! My mind heuristically associated uppercase L and M with categories A-Z, so I thought that by L or M being empty you were referring to the categories being empty rather than a or b (or list_of_art or list_of_cat being empty).
Is my new understanding correct?
You are more experienced than me so I'd hate to overreach. However, one suggestion that I may give is that instead of referring to the input variables as L or M in your description, you give them meaningful names such as 'booklist' (L) and 'report_categories' (M)?
Thanks again! Great kata. Got my mind working!
I am afraid you have not read (or badly read) the entire description.
First:
Second:
Do you confound an empty list/array with a count of 0 for some category?
Last:
You are new at CW but before posting "Issue" (which should rather be "Question") 1) look at the top of the page to see how many people passed the kata, 2) read some of the comments before writing yours, 3) note for the future that "Issues" are for problems in the kata.
Good luck at CW and cheers!
This comment is hidden because it contains spoiler information about the solution