24 Game: Move instruction to instructions section
This commit is contained in:
parent
084ba9c782
commit
8069923feb
@ -6,6 +6,12 @@ challengeType: 5
|
|||||||
|
|
||||||
## Description
|
## Description
|
||||||
<section id='description'>
|
<section id='description'>
|
||||||
|
The <a href="http://en.wikipedia.org/wiki/24_Game" target="_blank">24 Game</a> 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 24
|
||||||
|
</section>
|
||||||
|
|
||||||
|
## Instructions
|
||||||
|
<section id='instructions'>
|
||||||
Implement a function that takes a string of four digits as its argument, with each digit from 1 to 9 (inclusive) with repetitions allowed, and returns an arithmetic expression that evaluates to the number 24. If no such solution exists, return "no solution exists".
|
Implement a function that takes a string of four digits as its argument, with each digit from 1 to 9 (inclusive) with repetitions allowed, and returns an arithmetic expression that evaluates to the number 24. If no such solution exists, return "no solution exists".
|
||||||
|
|
||||||
<h4><strong>Rules:</strong></h4>
|
<h4><strong>Rules:</strong></h4>
|
||||||
@ -24,11 +30,6 @@ Implement a function that takes a string of four digits as its argument, with ea
|
|||||||
| <code>solve24("1127");</code> | <code>(1+7)*(2+1)</code> |
|
| <code>solve24("1127");</code> | <code>(1+7)*(2+1)</code> |
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Instructions
|
|
||||||
<section id='instructions'>
|
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
||||||
## Tests
|
## Tests
|
||||||
<section id='tests'>
|
<section id='tests'>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user