Algorithm · ByteDance · Easy
You are given two character arrays. Each array encodes a signed base‑10 integer: an optional leading '-' character indicates a negative value, and the remaining characters are digits '0' through '9'. Write a function that converts each character array into the integer it represents, then returns the sum of those two integers. Constraints Each input array has a length between 1 and 4. The integer value each array represents lies in the range [-100, 100]. Only '0'–'9' and an…
Checking your access…