6
spodeneyko
1 4 18
193/ 195
Ivan Spodeneyko
Last seen 2 years ago
Member for 8 years, 1 month, 17 days
Difficulty Normal
Best reviews / Newest reviews
Second-Agrigor 1 1
Yust exactly how my solution, except I used: return sorted(w1) == sorted(w2) It is same logic. More
Shortest? 52 - Kill me now-StefanPochmann
Have no idea what that code means :-D More
First-gyahun_dash 1
I really like your solution! But the code below always gives 0 . Isn't it? length = 30 * min(len(word1) / len(word2), len(word2) / len(word1)) In my code i did: length = 30 * min(float(len(word1)) / float(len(word2)), float(len(word2)) / float(len(word1))) More
First-Nolapete
You can do this a little shorter. Instead of: elif x == 'POP': if len(stack) != 0: checksum += stack[-1] stack.pop() You can write: elif x == 'POP'and len(stack) != 0: checksum += stack.pop() BTW I lerned usefull stuff from your code! More
First-motokerotan
I did not get what that code does: def delete(word): temp="" for j in "abcdefghijklmnopqrstuvwxyz": if j in word: temp+=j return temp ​ You already delete all punctuation with : word = message.replace(",","").replace(".","").replace(";","").replace("'",""). More
First-motokerotan
Also in my case that code gave me O: len(word[j])/len(word[i])*30 Because Python is round int to the floor. For instance, 4/6 will be 0. I did: float(len(word[j]))/float(len(word[i]))*30 Any way intresting solution More
First-cimarronm
A little bit long , but I like your fibonacci function! More
My elegant solution-Kiseloff
thats not right solution! In 2nd exemple it will count grid[-1][-1],grid[-1][0],grid[0][-1] and grid[1][-1]. But not supose to. More
Without datetime-ciel 1
It seems not quite fit for 'clear' category. I can't get my head around the solution. More