Only the last example make sense.
There has been some corruption and information removal. The actual examples are as follows:
'a b c' => ['b'] 'a bcs d k' => ['d'] ' a b sc p t k' => ['p'] 'a b c de' => ['b', 'c'] ' a b c de ' => ['b'] 'abc' => ['a', 'b', 'c']
Also there is the important note as follows:
String can have leading/trailing spaces, you should not count them; Strings contain only unique characters from a to z; Order of characters in array doesn't matter;
String can have leading/trailing spaces, you should not count them;
Strings contain only unique characters from a to z;
Order of characters in array doesn't matter;
So first and last non-whitespace character are less likely to be lonely, because they don't have space on one side? For example, why is the first answer not ['b', 'c']? 'c' is as far from the other letters as it gets!
['b', 'c']
'c'
I didn't write the rules, just copied them from the other site :-Þ
RIP
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Only the last example make sense.
There has been some corruption and information removal. The actual examples are as follows:
Also there is the important note as follows:
So first and last non-whitespace character are less likely to be lonely, because they don't have space on one side?
For example, why is the first answer not
['b', 'c']
?'c'
is as far from the other letters as it gets!I didn't write the rules, just copied them from the other site :-Þ
RIP