Which is better and why
lets we have
strung s="" , k="abcd";
(1) s=s+a;
(2) s+=a;
Leetcode Weekly 498 Solution Discussion