if(i != pos && num.charAt(pos) == '0') break;
Could you please explain what this condition is doing. I believe it handles the following example:
"105", 5 -> ["1*0+5","10-5"]
But I don't understand how it actually works.
Thanks for the solution :)
Expression Add Operators
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.