freeCodeCamp/guide/english/miscellaneous/freecodecamp-algorithm-chal.../index.md

5.0 KiB

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 pull request

Algorithm add name here]

![🚩 Remember to use Read-Search-Ask if you get stuck. Try to pair program :busts_in_silhouette: and write your own code :pencil:

:checkered_flag: Problem Explanation:

Explain what is asked, in an easy to understand and detailed way.

:speech_balloon: Hint: 1

Add hint 1 here.

try to solve the problem now

:speech_balloon: Hint: 2

Add hint 2 here.

try to solve the problem now

:speech_balloon: Hint: 3

Add hint 3 here.

try to solve the problem now

Spoiler Alert!

warning sign

Solution ahead!

:beginner: Basic Code Solution:

// write solution code here

:rocket: Run Code

Code Explanation:

Explain solution here and add any relevant links

:sunflower: Intermediate Code Solution:

// write solution code here

:rocket: Run Code

Code Explanation:

Explain solution here and add any relevant links

:rotating_light: Advanced Code Solution:

// write solution code here

:rocket: Run Code

Code Explanation:

Explain solution here and add any relevant links

:clipboard: NOTES FOR CONTRIBUTIONS:

  • :warning: 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. :traffic_light:
  • Please add your username only if you have added any relevant main contents. (:warning: DO NOT remove any existing usernames)

See :point_right: Wiki Challenge Solution Template for reference.