+ 1
Friedman number
I'm trying the Friedman number challenge and I have one problem: how do I generate all possible outcomes with "()" I'm trying to do it by counting up binary but then I noticed that brackets can be right next to each other Exempel: ((x + y) *z) ^a so many combinations... đ€Ż
1 Answer
+ 2
one way to do this is to use the reverse polish notation and a stack
https://code.sololearn.com/c9sDZBKT9aAG/?ref=app