- Add numbers: definitely go in the REVERSE order;
for(A;B;C): satisfyingAandB: go intofor; then executeC.carry > 0inside for: whencarry == 0andi<0, j<0: no need going intoforloop;
1 | public String addStrings(String num1, String num2) { |