hodisr
  • Member for 3 years
  • Last seen more than a month ago
  • Tel Aviv, Israel
Most basic fantasy combat simulator
1 votes

Your code looks good and was easy to understand, at least for me :) A few things you can do to improve it: Python String Format and Upper Consider using python format() method, instead of: print("...

View answer
Bracket matcher in Python
1 votes

From my experience in job interviews that question usually takes you to implements a solution with one type of data-structure. A good implementation will be using a stack that load each '(' bracket ...

View answer
Deletion Distance between 2 strings
1 votes

Your code looks alright but if I may offer a different approach that is more "pythonic". One way to address the problem is to think of it as how many chars are in the two words combined minus the ...

View answer
Given a list of numbers and a number k, return whether any two numbers from the list add up to k
0 votes

Your solution doesn't take into consideration and array that k equals x*2, for example if arr = {10, 17, 3} and k == 20, k - x = 10 and 10 -> true will be placed in map. In the second iteration the ...

View answer