17
Last seen 3 years ago
Member for 3 years, 5 months, 27 days
Difficulty Normal
Nice solution using the try, except. It inspires me to use try/except to handle cases where logic conditions are not met. =)
More
I do not see the meaning of using copy here. We did not do any alteration of the list, just find the index of border. If someone can explain a little bit, that would be very helpful =)
More
Very elegant work in just one line!! I will try to use more if else within one line too . =)
More
Very nice solution. I would just using slices of list , like [items[-1]] + items[:-1] . It inspires me to do it in another way. Nice work !
More
Very elegant solution using built in method. I should do the same, thinking about using built in method next time!
More
Nice work. I will just trun the inout to a list and then i can use the
built in function max and min , then do the minus. I suppose that python
takes care of the operation between int and float automatically. If that
is not the case, please correct me .
More