@makuiyu 看了您的代码, 表示我的内心受到了伤害
that's a really good idea! thanks
nice,it's more efficient !
that is used to compute the last digit.
it is cool
at first, i use .repalce('0b', '') instead of [2:], it only beats 10%, i beat 75% when i use the latter..
use StringBuilder is much better
Test of "0001" + "1" failed. Should return "10" but "0010". Though this kind of test cases is not included in tests.
Because myString = someChar + myString; takes linear time.
very concise !
No, this is super short :p
No one has replied
Good solution thank you !!!!!!
oh I know the reason. Thank you!
if the string is long, doing a+b as int may cause overflow
the original code is correct and add '0' is necessary!
I optimise your solution's performance a little.
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.