This comment is hidden because it contains spoiler information about the solution
I guess you're assuming requirements that don't exist then!
in the solution you assume that quantity of whitespace delimited numbers are not more than 27 which is len('+-/+-/+-/+-/+-/+-/+-'), so what if the quantity is more than 27 ?
I mean, I did this kata a few months ago, I've improved a lot since then.
Nice solution but function find_letter is invoked unnecessarly too much
no need to check if word exists
Very clever
Thanks, very explanatory
You could have written ''.join(' ' * ( abs(n // 2 - i)) + '*' * (n - 2 * abs(n // 2 - i)) + '\n' for i in range(n)) if n > 0 and n % 2 else None
why have you chose variable t:= ?
:)))))
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
I guess you're assuming requirements that don't exist then!
in the solution you assume that quantity of whitespace delimited numbers are not more than 27 which is len('+-/+-/+-/+-/+-/+-/+-'), so what if the quantity is more than 27 ?
I mean, I did this kata a few months ago, I've improved a lot since then.
Nice solution but function find_letter is invoked unnecessarly too much
no need to check if word exists
Very clever
This comment is hidden because it contains spoiler information about the solution
Thanks, very explanatory
You could have written
''.join(' ' * ( abs(n // 2 - i)) + '*' * (n - 2 * abs(n // 2 - i)) + '\n' for i in range(n)) if n > 0 and n % 2 else None
why have you chose variable t:= ?
:)))))