* feat(tools): add seed/solution restore script * chore(curriculum): remove empty sections' markers * chore(curriculum): add seed + solution to Chinese * chore: remove old formatter * fix: update getChallenges parse translated challenges separately, without reference to the source * chore(curriculum): add dashedName to English * chore(curriculum): add dashedName to Chinese * refactor: remove unused challenge property 'name' * fix: relax dashedName requirement * fix: stray tag Remove stray `pre` tag from challenge file. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: 5900f3c11000cf542c50fed4
 | |
| title: 'Problem 85: Counting rectangles'
 | |
| challengeType: 5
 | |
| forumTopicId: 302199
 | |
| dashedName: problem-85-counting-rectangles
 | |
| ---
 | |
| 
 | |
| # --description--
 | |
| 
 | |
| By counting carefully it can be seen that a rectangular grid measuring 3 by 2 contains eighteen rectangles:
 | |
| 
 | |
| <img class="img-responsive center-block" alt="a diagram of the different rectangles found within a 3 by 2 rectangular grid" src="https://cdn-media-1.freecodecamp.org/project-euler/counting-rectangles.png" style="background-color: white; padding: 10px;">
 | |
| 
 | |
| Although there exists no rectangular grid that contains exactly two million rectangles, find the area of the grid with the nearest solution.
 | |
| 
 | |
| # --hints--
 | |
| 
 | |
| `countingRectangles()` should return a number.
 | |
| 
 | |
| ```js
 | |
| assert(typeof countingRectangles() === 'number');
 | |
| ```
 | |
| 
 | |
| `countingRectangles()` should return 2772.
 | |
| 
 | |
| ```js
 | |
| assert.strictEqual(countingRectangles(), 2772);
 | |
| ```
 | |
| 
 | |
| # --seed--
 | |
| 
 | |
| ## --seed-contents--
 | |
| 
 | |
| ```js
 | |
| function countingRectangles() {
 | |
| 
 | |
|   return true;
 | |
| }
 | |
| 
 | |
| countingRectangles();
 | |
| ```
 | |
| 
 | |
| # --solutions--
 | |
| 
 | |
| ```js
 | |
| // solution required
 | |
| ```
 |