Given two strings, work out if they both have exactly the same characters in them.
true because they are the same but just scrambled.
Here are the rules!
- Assume input will be at least 1 char long, and no longer than 8 chars.
- No special characters, only A-Z
- All inputs can be assumed to be lowercase
boat, boat = true toab, boat = true oabt, toab = true a, aa = false zzz, zzzzzzzz = false zyyyzzzz, yyzzzzzy = true sleepy, pyels = false p,p = true
The shorter an answer is, the better!
Shame this question is marked community wiki... I thought that was the purpose of the site?!?!