| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:41889719-011c-8ccf-db0f-760f2bcd4a6f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C930:487EF:144D3DD:1BDD3D8:6AFB7891 |
| html-safe-nonce | f076aeaa4d4b9fcfb1bce5e2358277c440d2e54f32998fa4f461e8ff2d648e9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTMwOjQ4N0VGOjE0NEQzREQ6MUJERDNEODo2QUZCNzg5MSIsInZpc2l0b3JfaWQiOiIzNjk3OTYwMTM5MjA2OTE2MjQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c519241278e93773c128dbc71f6418eff9f83fe1057082eaa92f4272f9a0cb44 |
| hovercard-subject-tag | pull_request:2929214997 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/13623/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/ba0f7e962f6fec8ed1d4af84480bdcaf68cd758ce3b860d5745f1dbf0d7e5ed1/TheAlgorithms/Python/pull/13623 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba0f7e962f6fec8ed1d4af84480bdcaf68cd758ce3b860d5745f1dbf0d7e5ed1/TheAlgorithms/Python/pull/13623 |
| og:image:alt | Describe your change:
Add an algorithm
This pull request adds a generalized nCr (combinations) calculator that works
for any real number n and non-negative integer r using the formula:
nCr = n *... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Naman-Vasudev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e29e7974fdda2feeaf5c891efd4b23b0734b23480232b62c7bdef13f40b5b48 |
| turbo-cache-control | no-cache |
| go-import | github.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63476337 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63476337 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2e8872b770cc4d5d0cc1f2026afab747a268e2ce |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/TheAlgorithms/Python/pull/13623#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13623 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13623 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=TheAlgorithms%2FPython |
| Reload | https://github.com/TheAlgorithms/Python/pull/13623 |
| Reload | https://github.com/TheAlgorithms/Python/pull/13623 |
| Reload | https://github.com/TheAlgorithms/Python/pull/13623 |
| TheAlgorithms | https://github.com/TheAlgorithms |
| Python | https://github.com/TheAlgorithms/Python |
| Code | https://github.com/TheAlgorithms/Python |
| Issues14 (14) | https://github.com/TheAlgorithms/Python/issues |
| Pull requests104 (104) | https://github.com/TheAlgorithms/Python/pulls |
| Discussions | https://github.com/TheAlgorithms/Python/discussions |
| Actions | https://github.com/TheAlgorithms/Python/actions |
| Projects | https://github.com/TheAlgorithms/Python/projects |
| Wiki | https://github.com/TheAlgorithms/Python/wiki |
| Security and quality | https://github.com/TheAlgorithms/Python/security |
| Insights | https://github.com/TheAlgorithms/Python/pulse |
| https://github.com/TheAlgorithms/Python |
| cclauss | https://github.com/cclauss |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| Naman-Vasudev:ncr_final | https://github.com/Naman-Vasudev/Python-1/tree/ncr_final |
| Conversation | https://github.com/TheAlgorithms/Python/pull/13623 |
| Commits7 (7) | https://github.com/TheAlgorithms/Python/pull/13623/commits |
| Checks | https://github.com/TheAlgorithms/Python/pull/13623/checks |
| Files changed | https://github.com/TheAlgorithms/Python/pull/13623/files |
| Add generalized nCr (combinations) calculator for real n and integer r | https://github.com/TheAlgorithms/Python/pull/13623#top |
| cclauss | https://github.com/cclauss |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| Naman-Vasudev:ncr_final | https://github.com/Naman-Vasudev/Python-1/tree/ncr_final |
|
| https://github.com/Naman-Vasudev |
| Naman-Vasudev | https://github.com/Naman-Vasudev |
| Oct 20, 2025 | https://github.com/TheAlgorithms/Python/pull/13623#issue-3531749650 |
| https://en.wikipedia.org/wiki/Binomial_coefficient | https://en.wikipedia.org/wiki/Binomial_coefficient |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13623 |
|
| https://github.com/Naman-Vasudev |
| Create ncr_combinations.py | https://github.com/TheAlgorithms/Python/pull/13623/commits/4f457c5786dab2e83f00d671e7721528ed385eb9 |
| 4f457c5 | https://github.com/TheAlgorithms/Python/pull/13623/commits/4f457c5786dab2e83f00d671e7721528ed385eb9 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
| Oct 20, 2025 | https://github.com/TheAlgorithms/Python/pull/13623#event-20375909874 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
Oct 20, 2025
| https://github.com/TheAlgorithms/Python/pull/13623#pullrequestreview-3355748858 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13623/files/4f457c5786dab2e83f00d671e7721528ed385eb9 |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| https://github.com/TheAlgorithms/Python/pull/13623#pullrequestreview-3355748858 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Contributing guidelines | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| Project Euler solution guidelines | https://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md |
| Formatted string literals (f-strings) | https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings |
| Type hints | https://docs.python.org/3/library/typing.html |
| doctest | https://docs.python.org/3/library/doctest.html |
| unittest | https://docs.python.org/3/library/unittest.html |
| pytest | https://docs.pytest.org/en/stable/ |
| algorithms-keeper | https://github.com/dhruvmanila/algorithms-keeper |
| please open an issue about it. | https://github.com/dhruvmanila/algorithms-keeper/issues |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13623 |
| maths/ncr_combinations.py | https://github.com/TheAlgorithms/Python/pull/13623/files/4f457c5786dab2e83f00d671e7721528ed385eb9#diff-c49f812001618a5dfc3bd70bf55f6a8e018752468b49276df9c3748301fbd5f6 |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
| Oct 20, 2025 | https://github.com/TheAlgorithms/Python/pull/13623#discussion_r2444414774 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| snake_case | https://en.wikipedia.org/wiki/Snake_case |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13623 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| Oct 20, 2025 | https://github.com/TheAlgorithms/Python/pull/13623#event-20375910256 |
|
| https://github.com/Naman-Vasudev |
| Update ncr_combinations.py | https://github.com/TheAlgorithms/Python/pull/13623/commits/725abb4a59aebc91e196901399b91a87e029ac8f |
| 725abb4 | https://github.com/TheAlgorithms/Python/pull/13623/commits/725abb4a59aebc91e196901399b91a87e029ac8f |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
require descriptive names
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22 |
| Oct 20, 2025 | https://github.com/TheAlgorithms/Python/pull/13623#event-20375931985 |
| Naman-Vasudev | https://github.com/Naman-Vasudev |
| October 20, 2025 15:10 | https://github.com/TheAlgorithms/Python/pull/13623#commits-pushed-ab5dfe3 |
|
| https://github.com/Naman-Vasudev |
| Update ncr_combinations.py | https://github.com/TheAlgorithms/Python/pull/13623/commits/ab5dfe38193f7376eaad5dfa4eba35e3a8817f1e |
| ab5dfe3 | https://github.com/TheAlgorithms/Python/pull/13623/commits/ab5dfe38193f7376eaad5dfa4eba35e3a8817f1e |
|
| https://github.com/Naman-Vasudev |
| Update ncr_combinations.py | https://github.com/TheAlgorithms/Python/pull/13623/commits/c15888afbdc4d5ab4a30c1433246817a206983e2 |
| c15888a | https://github.com/TheAlgorithms/Python/pull/13623/commits/c15888afbdc4d5ab4a30c1433246817a206983e2 |
|
| https://github.com/Naman-Vasudev |
| Update ncr_combinations.py | https://github.com/TheAlgorithms/Python/pull/13623/commits/16cab8cb89f928cc165cfee7ee60e6861cd717b2 |
| 16cab8c | https://github.com/TheAlgorithms/Python/pull/13623/commits/16cab8cb89f928cc165cfee7ee60e6861cd717b2 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
|
tests are failing
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22 |
| Oct 20, 2025 | https://github.com/TheAlgorithms/Python/pull/13623#event-20376412067 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
|
Sep 13, 2026
| https://github.com/TheAlgorithms/Python/pull/13623#ref-issue-5437954679 |
|
Open Pull Request File Map
#15310
| https://github.com/TheAlgorithms/Python/issues/15310 |
| cclauss | https://github.com/cclauss |
| September 14, 2026 06:22 | https://github.com/TheAlgorithms/Python/pull/13623#commits-pushed-bd0e419 |
|
| https://github.com/cclauss |
| Merge branch 'master' into ncr_final | https://github.com/TheAlgorithms/Python/pull/13623/commits/bd0e41966f74c1320bb3c61184a332b62d9812cb |
| bd0e419 | https://github.com/TheAlgorithms/Python/pull/13623/commits/bd0e41966f74c1320bb3c61184a332b62d9812cb |
|
| https://github.com/cclauss |
| updating DIRECTORY.md | https://github.com/TheAlgorithms/Python/pull/13623/commits/ddb69a284e5ddc9317cf56cf2da32cd2839cb443 |
| ddb69a2 | https://github.com/TheAlgorithms/Python/pull/13623/commits/ddb69a284e5ddc9317cf56cf2da32cd2839cb443 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
|
Sep 14, 2026
| https://github.com/TheAlgorithms/Python/pull/13623#pullrequestreview-5193873091 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/13623/files/ddb69a284e5ddc9317cf56cf2da32cd2839cb443 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| Sep 14, 2026 | https://github.com/TheAlgorithms/Python/pull/13623#event-31076685679 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
| 9523b68 | https://github.com/TheAlgorithms/Python/commit/9523b684cc5ccc44bc436129874b8e6f357ee6a2 |
| Sep 14, 2026 | https://github.com/TheAlgorithms/Python/pull/13623#event-31076690183 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13623 |
| https://github.co/hiddenchars |
| https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F13623 |
|
| https://github.com/cclauss |
|
cclauss
| https://github.com/cclauss |
|
| https://github.com/TheAlgorithms/Python/pull/13623/files/ddb69a284e5ddc9317cf56cf2da32cd2839cb443 |
|
| https://github.com/apps/algorithms-keeper |
|
algorithms-keeper[bot]
| https://github.com/apps/algorithms-keeper |
|
| https://github.com/TheAlgorithms/Python/pull/13623/files/4f457c5786dab2e83f00d671e7721528ed385eb9 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13623 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/13623 |
|
| https://github.com/Naman-Vasudev |
|
| https://github.com/cclauss |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |