• ###### bineapplecommented on "Next bigger number with the same digits" python solution

Same idea with me!

nice

• ###### jinks908commented on "Next bigger number with the same digits" python solution

I can only speak for myself, but I had originally used itertools.permutation() to split the given number into an array of all of its permutations and then sort through to find the lowest number greater than the original. This worked for the test cases but not when I actually attempted since really large numbers timeout as this algorithm is super inefficient.

So I changed the whole gameplan and simply forgot to change the 'import itertools' line at the top.

• ###### MrCloncommented on "Next bigger number with the same digits" python solution

Someone forget remove unused import, other copy-paste

• ###### ben2003commented on "Next bigger number with the same digits" python solution

They may trying to use the function(s) in the module itertools but the failed or find out that they don't need it.
And that's why they leave the code 'import itertools' undeleted.

But I am a dumbass so I will use itertools.permutations to solve it.

• ###### MCStellocommented on "Next bigger number with the same digits" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### user3663048commented on "Next bigger number with the same digits" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### Infuzibilcommented on "Next bigger number with the same digits" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### Weifeng Wangcommented on "Next bigger number with the same digits" python solution

elegant and clean

• ###### YazonDAcommented on "Next bigger number with the same digits" python solution

but for a long time I tried to understand why this )))
I`m innocent ))

• ###### michael_angelocommented on "Next bigger number with the same digits" python solution

This comment is hidden because it contains spoiler information about the solution

:)

• ###### ilinovstercommented on "Next bigger number with the same digits" python solution

There no needs of itertools. I have forgot to delete this line.

• ###### yoyotarscommented on "Next bigger number with the same digits" python solution

This comment is hidden because it contains spoiler information about the solution

• ###### Voilecreated an issue for "Imperfect Network #3 (missing messages)" kata

There is nothing stopping a solution from sharing states externally:

https://www.codewars.com/kata/reviews/55fb9664568d9cf1a900001c/groups/5bbb03fbb684d31c75000451