+ 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... 🤯

7th Aug 2018, 4:58 PM
Anton Böhler
Anton Böhler - avatar
1 Antwort
+ 2
one way to do this is to use the reverse polish notation and a stack https://code.sololearn.com/c9sDZBKT9aAG/?ref=app
8th Aug 2018, 5:57 AM
VcC
VcC - avatar