19
Steapn0806
3 13 32
2113/ 2195
Nazar Stepan
Last seen 10 months ago
Member for 4 years, 3 months, 11 days
Difficulty Normal
Best reviews / Newest reviews
First-logicalladybuglifestyle 1 1
Why you write "pass" in __init__? More
"All the Same"-pcaruana
Very good solution! You can also do this: return elements == [elements[0]] * len(elements) More
Dirty-Thaddeus_Cheung 1
Very long code! You can solve this in one string: return elements == [elements[0]] * len(elements) More
recursion permutations O(2**N)-Steapn0806
In this solution the program takes last weight in array and puts it on left or on right hands. If there are no weights in array then the program finds a difference between weights on the hands. Finally the program return the minimum difference. More
First-Steapn0806
Shorter solution: return int(max(str(number))) More
using index of the channels list-nickgryg
good чт, 30 квіт. 2020 о 12:56 Назар Степан пише: More
First-lerka
Good idea! But you can do this in one string: return elements == [elements[0] * len(elements) More
seen order number list-PythonWithPI
You forgot to delete 'print' on 13 string More