15
Last seen 2 years ago
Member for 9 years, 11 months, 15 days
Difficulty Normal
I usually dont write comments, but this one is really good solution!
Very clear and easy to understand!
More
very beautiful approach in solving this problem. At the beginning I was trying to make my solution something similar to yours but I failed. So I used stack. Now yours solutions opened my eyes. Thank you
More
the for loop is not necessary. You can just check if '.' is the last char text_1[-1] == '.' and append the already capitalized char with text+= text_1[1:]
More
why not return sorted(goods, key = lambda x: x['price'], reverse = True)[:number] ?
More
Very clear and easy to understand solution. This deserves more votes
More