5 kyu
Find the unique string
2,493 of 6,007isqua
Description:
There is an array of strings. All strings contains similar letters except one. Try to find it!
findUniq([ 'Aa', 'aaa', 'aaaaa', 'BbBb', 'Aaaa', 'AaAaAa', 'a' ]) === 'BbBb'
findUniq([ 'abc', 'acb', 'bac', 'foo', 'bca', 'cab', 'cba' ]) === 'foo'
Strings may contain spaces. Spaces are not significant, only non-spaces symbols matters. E.g. string that contains only spaces is like empty string.
It’s guaranteed that array contains more than 2 strings.
This is the second kata in series:
- Find the unique number
- Find the unique string (this kata)
- Find The Unique
Fundamentals
Algorithms
Arrays
Strings
Similar Kata:
Stats:
Created | Dec 23, 2016 |
Published | Dec 23, 2016 |
Warriors Trained | 19133 |
Total Skips | 2399 |
Total Code Submissions | 67431 |
Total Times Completed | 6007 |
JavaScript Completions | 2493 |
TypeScript Completions | 464 |
PHP Completions | 369 |
Python Completions | 2773 |
COBOL Completions | 4 |
Total Stars | 641 |
% of votes with a positive feedback rating | 91% of 874 |
Total "Very Satisfied" Votes | 732 |
Total "Somewhat Satisfied" Votes | 120 |
Total "Not Satisfied" Votes | 22 |
Total Rank Assessments | 16 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |