← Back to challenges

Find Unique Character Strings

PythonHardarraysstringshigher_order_functions

Instructions

Create a function that returns only strings with unique characters.

Examples

filter_unique(["abb", "abc", "abcdb", "aea", "bbb"]) ➞ ["abc"]
# "b" occurs in "abb" more than once, "b" occurs in "abcdb" more than once, etc.

filter_unique(["88", "999", "989", "9988", "9898"]) ➞ []

filter_unique(["ABCDE", "DDEB", "BED", "CCA", "BAC"]) ➞ ["ABCDE", "BED", "BAC"]

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Capture the Rook