Re: Free Code Camp.org Challenges

2020-05-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Free Code Camp.org Challenges Not to double post, but that said you will probably also have to figure out how to walk through the permutations of the parens (since you can sum 3 numbers and divide by only one), but it's always 4 numbers and 3 operators, so it's jsut a matter

Re: Free Code Camp.org Challenges

2020-05-11 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Free Code Camp.org Challenges I don't have the time for the long form explanation of this at the moment, but they're asking you to build an _expression_ tree and walk through the permutations.  If you realize that any result is of the form:(d1 op1 d2) op2 (d3 op3 d4)Then all you do

Re: Free Code Camp.org Challenges

2020-05-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Free Code Camp.org Challenges I'll revive this because ironically now I need help:Problem text:The 24 Game tests a person's mental arithmetic.The aim of the game is to arrange four numbers in a way that when evaluated, the result is 24Implement a function that takes a string of four

Re: Free Code Camp.org Challenges

2020-05-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Free Code Camp.org Challenges I'll revive this because ironically now I need help:Problem text:FreeCodeCamp.org wrote:The 24 Game tests a person's mental arithmetic.The aim of the game is to arrange four numbers in a way that when evaluated, the result is 24Implement a function

Re: Free Code Camp.org Challenges

2020-05-11 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Free Code Camp.org Challenges I'll revive this because ironically now I need help:Problem text:The 24 Game tests a person's mental arithmetic.The aim of the game is to arrange four numbers in a way that when evaluated, the result is 24Implement a function that takes a string of four