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, my answer accounts for this.
This comment is hidden because it contains spoiler information about the solution
can someone please explain to me why we needed minor_words = ''
instead of just leaving it as minor words
I understand that because you added the = '' the solution worked, because i actually got an error without it
you don't technically need the parenthasis either when you have no argument to pass. so title.capitalize.split.map would be just as operational here.
This code does not seem adaptable to any array with any hash. When you use "names = names.map { |name| name[:name] }" you are using the key ':name' based on the test cases. So this solution only works based on the test cases.
The pop will return the last element, and if the element does not exists, they will return this element...
Perfect solution, and very different from mine!