Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
TheAlgorithms
/
JavaScript
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
5.8k
Star
34.3k
Code
Issues
22
Pull requests
192
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Commits
Breadcrumbs
History for
JavaScript
Maths
on
9120085
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 28, 2021
merge: Created midpoint integration numerical method (#822)
Show description for 1cd3b86
3 people
authored
1cd3b86
View commit details
Copy full SHA for 1cd3b86
View code at this point
Browse repository at this point
merge: Fix spellings (#821)
Show description for 072523d
4 people
authored
072523d
View commit details
Copy full SHA for 072523d
View code at this point
Browse repository at this point
merge: Created composite Simpson's integration method. Tests included. (#819)
Show description for 7722870
4 people
authored
7722870
View commit details
Copy full SHA for 7722870
View code at this point
Browse repository at this point
Commits on Oct 26, 2021
merge: Rename 2 filenames to follow PascalCase (#816)
Show description for 7c2f19b
SpiderMath
authored
7c2f19b
View commit details
Copy full SHA for 7c2f19b
View code at this point
Browse repository at this point
merge: Added Aliquot Sum Implementation (#810)
Show description for 502aec2
SpiderMath
authored
502aec2
View commit details
Copy full SHA for 502aec2
View code at this point
Browse repository at this point
Commits on Oct 25, 2021
merge: Added LucasSeries Implementation (#808)
Show description for 69a397c
SpiderMath
authored
69a397c
View commit details
Copy full SHA for 69a397c
View code at this point
Browse repository at this point
merge: Added manhattan distance and euclidean distance for distance 2 points task (#809)
Show description for e8d862c
ddhira123
and
raklaptudirm
authored
e8d862c
View commit details
Copy full SHA for e8d862c
View code at this point
Browse repository at this point
Commits on Oct 23, 2021
merge: Added Sum of GP (#807)
SpiderMath
authored
cd3974c
View commit details
Copy full SHA for cd3974c
View code at this point
Browse repository at this point
Commits on Oct 21, 2021
fix: standard style issues
raklaptudirm
committed
22ce760
View commit details
Copy full SHA for 22ce760
View code at this point
Browse repository at this point
chore: Merge pull request #768 from lvlte/issues/720
Show description for d38ebe5
raklaptudirm
authored
d38ebe5
View commit details
Copy full SHA for d38ebe5
View code at this point
Browse repository at this point
Added a short explanation of the Ext Euc Algo
VinWare
committed
e92e2e3
View commit details
Copy full SHA for e92e2e3
View code at this point
Browse repository at this point
Fixed `!=` to `!==` and ran `npm run style`
VinWare
committed
79c7ce4
View commit details
Copy full SHA for 79c7ce4
View code at this point
Browse repository at this point
Merge branch 'TheAlgorithms:master' into master
VinWare
authored
56b29ca
View commit details
Copy full SHA for 56b29ca
View code at this point
Browse repository at this point
`npm run style` result
VinWare
committed
5ccfafe
View commit details
Copy full SHA for 5ccfafe
View code at this point
Browse repository at this point
Added Extended Euclidean Algorithm (ExtendedEuclideanGCD.js) to Maths folder, along with relevant test
VinWare
committed
fe56f54
View commit details
Copy full SHA for fe56f54
View code at this point
Browse repository at this point
chore: Merge pull request #794 from Badhusha-Akhthaar/master
Show description for 8352d26
raklaptudirm
authored
8352d26
View commit details
Copy full SHA for 8352d26
View code at this point
Browse repository at this point
Fixed as per standard.js
Badhusha-Akhthaar
authored
4358537
View commit details
Copy full SHA for 4358537
View code at this point
Browse repository at this point
Commits on Oct 17, 2021
Added new Mathematical algorithm , Figurate Numbers
Show description for 915ca4c
Badhusha-Akhthaar
committed
915ca4c
View commit details
Copy full SHA for 915ca4c
View code at this point
Browse repository at this point
Commits on Oct 16, 2021
Minor fixes
Show description for fa1abf4
arthurvergacas
committed
fa1abf4
View commit details
Copy full SHA for fa1abf4
View code at this point
Browse repository at this point
Commits on Oct 15, 2021
Minor fixes
Show description for ffb138a
arthurvergacas
committed
ffb138a
View commit details
Copy full SHA for ffb138a
View code at this point
Browse repository at this point
Commits on Oct 14, 2021
A few suggestions / modifications / fixes
Show description for c5e44d4
defaude
committed
c5e44d4
View commit details
Copy full SHA for c5e44d4
View code at this point
Browse repository at this point
Add Fermat Primality Test
arthurvergacas
committed
3c2fdf7
View commit details
Copy full SHA for 3c2fdf7
View code at this point
Browse repository at this point
Commits on Oct 10, 2021
Remove live code & console.log, leave examples as comments (Geometry, Graphs, Maths).
lvlte
committed
9212e6d
View commit details
Copy full SHA for 9212e6d
View code at this point
Browse repository at this point
Commits on Oct 9, 2021
Comply with ESM. Convert live code example to Jest test.
lvlte
committed
3f32320
View commit details
Copy full SHA for 3f32320
View code at this point
Browse repository at this point
Comply with ESM syntax.
lvlte
committed
cbe7e0c
View commit details
Copy full SHA for cbe7e0c
View code at this point
Browse repository at this point
Commits on Oct 7, 2021
chore: merge Fix/742 migrate doctest to jest (#749)
Show description for b13b12e
defaude
authored
b13b12e
View commit details
Copy full SHA for b13b12e
View code at this point
Browse repository at this point
Commits on Oct 5, 2021
Merge branch 'master' into master
ahamed
authored
82d1c2a
View commit details
Copy full SHA for 82d1c2a
View code at this point
Browse repository at this point
fixed some spellings
keshav-bohr
committed
1589263
View commit details
Copy full SHA for 1589263
View code at this point
Browse repository at this point
Commits on Oct 3, 2021
:sparkles: add an algorithm for checking a year is a leap year or not
ahamed
committed
bf088c0
View commit details
Copy full SHA for bf088c0
View code at this point
Browse repository at this point
Commits on Sep 13, 2021
chore: Added Sum of Digits Implementation (#684)
Show description for b3b4ad4
SpiderMath
and
SpiderMath
authored
b3b4ad4
View commit details
Copy full SHA for b3b4ad4
View code at this point
Browse repository at this point
Commits on Sep 7, 2021
fix, self-contained gcd method
suryapratapsinghsuryavanshi
committed
5e3106e
View commit details
Copy full SHA for 5e3106e
View code at this point
Browse repository at this point
fix the string method problem
suryapratapsinghsuryavanshi
committed
5a8bb67
View commit details
Copy full SHA for 5a8bb67
View code at this point
Browse repository at this point
Commits on Sep 6, 2021
add CheckKishnamurthyNumber
suryapratapsinghsuryavanshi
committed
800308f
View commit details
Copy full SHA for 800308f
View code at this point
Browse repository at this point
fix typing style
suryapratapsinghsuryavanshi
committed
7fb345b
View commit details
Copy full SHA for 7fb345b
View code at this point
Browse repository at this point
fix number checking
suryapratapsinghsuryavanshi
committed
617ec6b
View commit details
Copy full SHA for 617ec6b
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.