Načítání úlohy…
Large numbers are often stored as strings so they are not limited by regular numeric types. Given two strings num1 and num2 containing non-negative integers, return their sum as a string. Add the digits carefully, and do not convert the whole input strings directly to int.
"11", "123""134""456", "77""533""0", "0""0"def add_strings(num1: str, num2: str) -> str:
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit se"11", "123""134""456", "77""533""0", "0""0""99", "1""100""1", "9999""10000""xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "77""8000000000000000000000000000069"