+ 2
What is the error with this code?
4 Answers
+ 5
A closing bracket is missing in line 28. Also, use 'and' instead of &.
+ 2
You are missing a ) in line 28.
+ 2
Thanks but it still shows time limit exceeded which does not happen when i use the python idle on my laptop.
+ 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.