How to insert +-/* and parentheses in the worksheet containing a set of numbers?
Hello. Please help me to write an algorithm insert -+*/ and parentheses worksheet with 4 digits. Found that the possible combinations of insertion of these symbols (brackets not considered yet) will be 3^3(ie there are 3 possible places of insertion mod.digits between 4 digits).
But I can not understand how to cycle, putting the signs in the sheet. I insert only 1 type of character in every possible place, and try all possible values are not obtained. Write in java, rather just learning.