97 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			97 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
|   | --- | ||
|  | title: Freecodecamp Algorithm Challenge Template Guide | ||
|  | --- | ||
|  | > This is the template that you should follow when writing new algorithm solutions or adding content, always make sure the latest version of this template is implemented on your <a>pull request</a>
 | ||
|  | 
 | ||
|  | # Algorithm <a href='https://forum.freecodecamp.com/images/emoji/emoji_one/triangular_flag_on_post.png?v=3 ":triangular_flag_on_post:"' target='_blank' rel='nofollow'>add name here]
 | ||
|  | 
 | ||
|  |  and write your own code  | ||
|  | 
 | ||
|  | ###  Problem Explanation:
 | ||
|  | 
 | ||
|  | Explain what is asked, in an easy to understand and detailed way. | ||
|  | 
 | ||
|  | #### Relevant Links
 | ||
|  | 
 | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 1</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 2</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 3</a> | ||
|  | 
 | ||
|  | ##  Hint: 1
 | ||
|  | 
 | ||
|  | Add hint 1 here. | ||
|  | 
 | ||
|  | > _try to solve the problem now_
 | ||
|  | 
 | ||
|  | ##  Hint: 2
 | ||
|  | 
 | ||
|  | Add hint 2 here. | ||
|  | 
 | ||
|  | > _try to solve the problem now_
 | ||
|  | 
 | ||
|  | ##  Hint: 3
 | ||
|  | 
 | ||
|  | Add hint 3 here. | ||
|  | 
 | ||
|  | > _try to solve the problem now_
 | ||
|  | 
 | ||
|  | ## Spoiler Alert!
 | ||
|  | 
 | ||
|  |  | ||
|  | 
 | ||
|  | **Solution ahead!** | ||
|  | 
 | ||
|  | ##  Basic Code Solution:
 | ||
|  | 
 | ||
|  |     // write solution code here | ||
|  | 
 | ||
|  |  <a href='https://repl.it/URL-HERE' target='_blank' rel='nofollow'>Run Code</a> | ||
|  | 
 | ||
|  | ### Code Explanation:
 | ||
|  | 
 | ||
|  | Explain solution here and add any relevant links | ||
|  | 
 | ||
|  | #### Relevant Links
 | ||
|  | 
 | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 1</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 2</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 3</a> | ||
|  | 
 | ||
|  | ##  Intermediate Code Solution:
 | ||
|  | 
 | ||
|  |     // write solution code here | ||
|  | 
 | ||
|  |  <a href='https://repl.it/URL-HERE' target='_blank' rel='nofollow'>Run Code</a> | ||
|  | 
 | ||
|  | ### Code Explanation:
 | ||
|  | 
 | ||
|  | Explain solution here and add any relevant links | ||
|  | 
 | ||
|  | #### Relevant Links
 | ||
|  | 
 | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 1</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 2</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 3</a> | ||
|  | 
 | ||
|  | ##  Advanced Code Solution:
 | ||
|  | 
 | ||
|  |     // write solution code here | ||
|  | 
 | ||
|  |  <a href='https://repl.it/URL-HERE' target='_blank' rel='nofollow'>Run Code</a> | ||
|  | 
 | ||
|  | ### Code Explanation:
 | ||
|  | 
 | ||
|  | Explain solution here and add any relevant links | ||
|  | 
 | ||
|  | #### Relevant Links
 | ||
|  | 
 | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 1</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 2</a> | ||
|  | *   <a href='http://example.com' target='_blank' rel='nofollow'>Link Title 3</a> | ||
|  | 
 | ||
|  | ##  NOTES FOR CONTRIBUTIONS:
 | ||
|  | 
 | ||
|  | *    **DO NOT** add solutions that are similar to any existing solutions. If you think it is **_similar but better_**, then try to merge (or replace) the existing similar solution. | ||
|  | *   Add an explanation of your solution. | ||
|  | *   Categorize the solution in one of the following categories — **Basic**, **Intermediate** and **Advanced**.  |