Add Strings (LC #415) simulates addition of two numbers represented as strings without converting to integers. Use two pointers starting from the end of both strings. Add digits plus carry, compute new digit as sum mod , update carry as sum divided by . Prepend the digit to your result. Continue until both pointers are exhausted and carry is zero. This runs in time and space. Meta asks this because it tests edge case handling: different lengths, leading zeros in result, and the final carry.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
$ curl repovive.com/roadmaps/meta-interview-prep/arrays-strings/add-strings
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███████████████████████████████████████████████████████████████████████████