Hi, could someone direct me in the right direction, I don't know what I am missing with this problem...
The description states that
The name of any user is typically a set of words.
So I am considering that there could be empty names.
All words are separated by a single space.
But it doesn't say that there could be trailing or leading spaces, I got that in code too... And I assume there won't be more than 1 space between words.
All words have no more than 20 letters.
Ok, so a single word is not longer than 20 letters... but it doesn't state the maximum words there could be... I'm considering up to 102 words, are they not enough?
All words have only capital letters.
So I'm assuming that if leading or trailing spaces, all of them should be omitted, since ' ' is not a capital letter, then, not a word.
I've run a test, (When previewing the post, leading and trailing spaces where deleted so, I replaced them with [#spaces] instead):
346653 RITA GARCIA HERNANDEZ
435984 [9spaces]CARLOSD FGFG[6spaces]
463756 MANUEL GONZALEZ BRITO
633735 [1space]OLGALIDIA BROK SABALA
349834 WEROIWER WERJUWE RJER WEROIUWER WEORIWERW WERJIWE RJIWE[1space]
459834 RGIJ DFKJF
633735 [1space]OLGALIDIA BROK SABALA JHSD DJBDF[2spaces]
435984 [8spaces]CARLOSD FGFG
And I get this result
I added comments to the code to make it easier to read, but I sent it to the judge without comments
So, what else am I missing
Thanks for your time.