trekhleb / javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
MIT License
184.96k stars 29.83k forks source link

Implement Pythagorean Algorithm #1091

Open Haminhquan3001 opened 6 months ago

Haminhquan3001 commented 6 months ago

Changes made in this PR:

I have an idea of implementing an algorithm that verifies the Pythagorean Theorem and I have implemented it.

../src/algorithms/math/pythagorean-theorem Create this folder and a js file and another test folder that contains an algorithm that checks the condition of input parameters, return true if it satisfies the Pythagorean Theorem, otherwise return false.