27th Dec 2018, 6:05 PM
Chidera Melvin
Chidera Melvin - avatar
4 Answers
+ 5
A closing bracket is missing in line 28. Also, use 'and' instead of &.
27th Dec 2018, 6:24 PM
Anna
Anna - avatar
+ 2
You are missing a ) in line 28.
27th Dec 2018, 6:24 PM
HonFu
HonFu - avatar
+ 2
Thanks but it still shows time limit exceeded which does not happen when i use the python idle on my laptop.
27th Dec 2018, 6:26 PM
Chidera Melvin
Chidera Melvin - avatar
+ 1
It doesn't happen with very small strings. Building permutations can take up a lot of time, so that might be the problem. btw: You don't necessarily need perms for that assignment.
27th Dec 2018, 6:50 PM
HonFu
HonFu - avatar