Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
It´s Python code, giving the "clever" solution it´s not a benefit for anyone XD
If you have enough time you could try https://www.codewars.com/kata/5772382d509c65de7e000982/train/erlang and tell me if you see problems. It's so rare to find someone who uses Erlang:-)
A big thanks to you!!! Do you well know Erlang?
I modified the translation. Your solution should work. Can you give it a try?
I now understand the problem for N > 32. I think the simplest thing to do is to "lists:sort" my results. What do you think of that?
I tried your first solution : it passes. Actual and expect outputs are in the same (wrong) order.Your second solution doesn't pass : actual and expect don't have their elements in the same order (your actual output seems to be in right order).
I don't understand what happens; with small numbers (N <= 32) the order is correct. From N = 33 the order is weird. Can you help?
I don't understand what you mean by "...are not in the correct order.". Can you be more explicit?
That's what the "Clever" rating is for, code that is more creative than efficient. I think we could all benefit from bringing more creativity to the programming space
The timeouts are because the iterations are on s2 can be over 600,000. Using set(s2) limits the iteration to 26 because there are only 26 unique aphabets, so the iterations are 26 or less.