9
Alexey Dvoretskiy
http://www.alexfast.org/
Last seen 5 years ago
Member for 7 years, 4 months, 17 days
Difficulty Normal
Data Engineer
Great solution! Clear and well structured!
More
You don't need to generate Fibonacci numbers up to 10000. Less than 5000 is more than enough. Also to avoid infinite loops is good practice.
More
str() takes lots of computational resources. This task can be don't in effective way without converting to string.
More
Nice, effective code. But can be done without converting to list. Also there is a simple solution with int() function.
More
Using same code 2 times "[c for c in sorted(list(anagram.lower())) if c.strip()]" you could put it into separate function.
More
Not sure why you need this line: a2, b2, c2 = a**2, b**2, c**2. Also, weird naming a2 is not a**2.
More
"if l in '{[(}])'" would be easier to read, but yours solution should work faster.
More