Algorithm Article Template

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 👥 and write your own code 📝

🏁 Problem Explanation:

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

Relevant Links

💬 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!

687474703a2f2f7777772e796f75726472756d2e636f6d2f796f75726472756d2f696d616765732f323030372f31302f31302f7265645f7761726e696e675f7369676e5f322e676966.gif

Solution ahead!

🔰 Basic Code Solution:

// write solution code here

🚀 Run Code

Code Explanation:

Explain solution here and add any relevant links

Relevant Links

🌻 Intermediate Code Solution:

// write solution code here

🚀 Run Code

Code Explanation:

Explain solution here and add any relevant links

Relevant Links

🚨 Advanced Code Solution:

// write solution code here

🚀 Run Code

Code Explanation:

Explain solution here and add any relevant links

Relevant Links

🏆 Credits:

If you found this page useful, you may say thanks to the contributors by copying and pasting the following line in the main chat:

Thanks @username for your help with Challenge: name of the challenge

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

See 👉 Wiki Challenge Solution Template for reference.