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.
If this was solved on your own and not via GPT Chat, you are a genius.
it is a container like vector i think (Data Structure)
Is string a vector?
First time seeing the ternary operator. Kinda makes me wonder why I would need a simple
if()
function at all.simple as that... nice one
This comment is hidden because it contains spoiler information about the solution
where is conversion of Boolean to a String?
Why fightResolve('A', 'a') must return 'a' in test cases? The description says: "If a matchup occurs that was not previously mentioned (for example Archers vs Pikemen) the attacker will always win." So attacker is first argument, 'A' in this case. Or did I miss something?
Of course, as you please. It's just a way of bounding logic together for good readability
() can be omitted
This comment is hidden because it contains spoiler information about the solution
Cool and fast solution!!
"This kata strictly takes two words with one space in between them."
this does not cover invalid inputs.
Thank you very much!
Loading more items...