Have no clue on how to solve this, any ideas and solutions are appreciated!
Starting from 1, generate a sequence - which denotes the operations used to reach the target
* multiple by 2
* floor division by 3
Example 1:
# target = 1
# output: ""
# explanation: 1 (target) = 1, no operations needed
Example 2:
# target = 2
# output: "*"
# explanation: 2 (target) = 1 * 2
Example 3:
# target = 8
# output: "***"
# explanation: 8 (target) = 1 * 2 * 2 * 2
Example 4:
# target = 10
# output: "****/*"
# explanation: 10 (target) = 1 * 2 * 2 * 2 * 2 // 3 * 2
Example 5:
# target = 3
# output: "****/*/"
# explanation: 3 (target) = 1 * 2 * 2 * 2 * 2 // 3 * 2 // 3