| 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:6c6afb36-f426-1bef-af32-e4ecc1465f5c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A6AA:AAABF:B08512:F80F5B:6AFB790B |
| html-safe-nonce | d3e3e3a013d31c0bfc24b64d8cb2c9fa541994c94f8d177641613f7ba5fe7730 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkFBOkFBQUJGOkIwODUxMjpGODBGNUI6NkFGQjc5MEIiLCJ2aXNpdG9yX2lkIjoiODA2NzQyMDg2NDExMjE5NTg1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e753d263b8213f9187e0b6e966b3b7cdec32e7110fe372b9779cacccf44fd700 |
| hovercard-subject-tag | pull_request:3266667305 |
| 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/14262/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d752c6a0a4ef33974e16c3c972a4a68d7c79a4b0e13d5dc3a5d2d58bff812f16/TheAlgorithms/Python/pull/14262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d752c6a0a4ef33974e16c3c972a4a68d7c79a4b0e13d5dc3a5d2d58bff812f16/TheAlgorithms/Python/pull/14262 |
| og:image:alt | Describe your change:
Added type hints to count_inversions_bf, count_inversions_recursive, and helper functions for better code clarity and IDE support. Tested locally with python3 divide_and_conqu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nupurvavhal |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/TheAlgorithms/Python/pull/14262#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F14262 |
| 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%2F14262 |
| 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/14262 |
| Reload | https://github.com/TheAlgorithms/Python/pull/14262 |
| Reload | https://github.com/TheAlgorithms/Python/pull/14262 |
| 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 |
| nupurvavhal:fix-type-hints-inversions | https://github.com/nupurvavhal/Python/tree/fix-type-hints-inversions |
| Conversation | https://github.com/TheAlgorithms/Python/pull/14262 |
| Commits5 (5) | https://github.com/TheAlgorithms/Python/pull/14262/commits |
| Checks | https://github.com/TheAlgorithms/Python/pull/14262/checks |
| Files changed | https://github.com/TheAlgorithms/Python/pull/14262/files |
| task: Add type hints to inversions.py | https://github.com/TheAlgorithms/Python/pull/14262#top |
| cclauss | https://github.com/cclauss |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| nupurvavhal:fix-type-hints-inversions | https://github.com/nupurvavhal/Python/tree/fix-type-hints-inversions |
|
| https://github.com/nupurvavhal |
| nupurvavhal | https://github.com/nupurvavhal |
| Feb 10, 2026 | https://github.com/TheAlgorithms/Python/pull/14262#issue-3920810025 |
| CONTRIBUTING.md | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| type hints | https://docs.python.org/3/library/typing.html |
| doctests | https://docs.python.org/3/library/doctest.html |
| closing keyword | https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
|
| https://github.com/nupurvavhal |
| task: Add type hints to inversions.py | https://github.com/TheAlgorithms/Python/pull/14262/commits/0e0f01c379d6b828e715ced4368183e0af05ea6e |
| 0e0f01c | https://github.com/TheAlgorithms/Python/pull/14262/commits/0e0f01c379d6b828e715ced4368183e0af05ea6e |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| February 10, 2026 10:58 | https://github.com/TheAlgorithms/Python/pull/14262#event-22670520274 |
| started reviewing | https://github.com/TheAlgorithms/Python/sessions/655df38c-39c9-4353-883c-97c74fdbe526 |
| nupurvavhal | https://github.com/nupurvavhal |
| February 10, 2026 10:59 | https://github.com/TheAlgorithms/Python/pull/14262#event-22670532246 |
|
View session
| https://github.com/TheAlgorithms/Python/sessions/655df38c-39c9-4353-883c-97c74fdbe526 |
| https://github.com/apps/algorithms-keeper |
| algorithms-keeper | https://github.com/apps/algorithms-keeper |
|
enhancement
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement |
|
awaiting reviews
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22 |
| Feb 10, 2026 | https://github.com/TheAlgorithms/Python/pull/14262#event-22670541224 |
|
| https://github.com/apps/copilot-pull-request-reviewer |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
|
Feb 10, 2026
| https://github.com/TheAlgorithms/Python/pull/14262#pullrequestreview-3778275046 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14262/files |
| Copilot | https://github.com/apps/copilot-pull-request-reviewer |
| https://github.com/TheAlgorithms/Python/pull/14262#pullrequestreview-3778275046 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Add Copilot custom instructions | https://github.com/TheAlgorithms/Python/new/master/.github/instructions?filename=*.instructions.md |
| Learn how to get started | https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
| divide_and_conquer/inversions.py | https://github.com/TheAlgorithms/Python/pull/14262/files#diff-9cecea86516c118f02142b83d0c106911b35e182109c2a51e0f331969ebfcc50 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
| divide_and_conquer/inversions.py | https://github.com/TheAlgorithms/Python/pull/14262/files#diff-9cecea86516c118f02142b83d0c106911b35e182109c2a51e0f331969ebfcc50 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
| divide_and_conquer/inversions.py | https://github.com/TheAlgorithms/Python/pull/14262/files#diff-9cecea86516c118f02142b83d0c106911b35e182109c2a51e0f331969ebfcc50 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
| divide_and_conquer/inversions.py | https://github.com/TheAlgorithms/Python/pull/14262/files#diff-9cecea86516c118f02142b83d0c106911b35e182109c2a51e0f331969ebfcc50 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
| 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 |
| Feb 10, 2026 | https://github.com/TheAlgorithms/Python/pull/14262#event-22670655209 |
|
| https://github.com/nupurvavhal |
| fixed formatting error | https://github.com/TheAlgorithms/Python/pull/14262/commits/b4a6c843d6f7fcee8aab465afcbc1cd0e34af1e8 |
| b4a6c84 | https://github.com/TheAlgorithms/Python/pull/14262/commits/b4a6c843d6f7fcee8aab465afcbc1cd0e34af1e8 |
| https://github.com/nupurvavhal |
| nupurvavhal | https://github.com/nupurvavhal |
| force-pushed | https://github.com/TheAlgorithms/Python/compare/fd44b0abd22214bed89c20b3e19193654f00d341..b4a6c843d6f7fcee8aab465afcbc1cd0e34af1e8 |
| fd44b0a | https://github.com/TheAlgorithms/Python/commit/fd44b0abd22214bed89c20b3e19193654f00d341 |
| b4a6c84 | https://github.com/TheAlgorithms/Python/commit/b4a6c843d6f7fcee8aab465afcbc1cd0e34af1e8 |
|
Compare
| https://github.com/TheAlgorithms/Python/compare/fd44b0abd22214bed89c20b3e19193654f00d341..b4a6c843d6f7fcee8aab465afcbc1cd0e34af1e8 |
| February 10, 2026 11:14 | https://github.com/TheAlgorithms/Python/pull/14262#event-22670925997 |
|
| https://github.com/nupurvavhal |
| style: Fix RUF037 in hash_table_with_linked_list | https://github.com/TheAlgorithms/Python/pull/14262/commits/d6a1505a790d7a204fb8ae01ed15665cbb079a5c |
| d6a1505 | https://github.com/TheAlgorithms/Python/pull/14262/commits/d6a1505a790d7a204fb8ae01ed15665cbb079a5c |
| 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 |
| Feb 10, 2026 | https://github.com/TheAlgorithms/Python/pull/14262#event-22671256957 |
| https://github.com/mindaugl |
| mindaugl | https://github.com/mindaugl |
|
Feb 10, 2026
| https://github.com/TheAlgorithms/Python/pull/14262#pullrequestreview-3781517984 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14262/files/2b4c4ff6e5a7886c15aaf9fdc8101d32e2304bfa |
| cclauss | https://github.com/cclauss |
| September 5, 2026 23:51 | https://github.com/TheAlgorithms/Python/pull/14262#commits-pushed-3f11390 |
|
| https://github.com/cclauss |
| Initialize deque with empty list for None values | https://github.com/TheAlgorithms/Python/pull/14262/commits/3f1139065248f29169ed4ef6c53f9b76f68484c5 |
| 3f11390 | https://github.com/TheAlgorithms/Python/pull/14262/commits/3f1139065248f29169ed4ef6c53f9b76f68484c5 |
|
| https://github.com/cclauss |
| Merge branch 'master' into fix-type-hints-inversions | https://github.com/TheAlgorithms/Python/pull/14262/commits/2b4c4ff6e5a7886c15aaf9fdc8101d32e2304bfa |
| 2b4c4ff | https://github.com/TheAlgorithms/Python/pull/14262/commits/2b4c4ff6e5a7886c15aaf9fdc8101d32e2304bfa |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
|
Sep 13, 2026
| https://github.com/TheAlgorithms/Python/pull/14262#ref-issue-5437954679 |
|
Open Pull Request File Map
#15310
| https://github.com/TheAlgorithms/Python/issues/15310 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
|
Oct 1, 2026
| https://github.com/TheAlgorithms/Python/pull/14262#pullrequestreview-5375789308 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/14262/files/2b4c4ff6e5a7886c15aaf9fdc8101d32e2304bfa |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
| a3309ef | https://github.com/TheAlgorithms/Python/commit/a3309ef0dded6e59a049c2128c1f95e5f1816a93 |
| Oct 1, 2026 | https://github.com/TheAlgorithms/Python/pull/14262#event-32228201211 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
| 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 1, 2026 | https://github.com/TheAlgorithms/Python/pull/14262#event-32228202576 |
| 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%2F14262 |
|
Copilot code review
| https://github.com/apps/copilot-pull-request-reviewer |
|
Copilot
| https://github.com/apps/copilot-pull-request-reviewer |
| Learn more about Copilot code review. | https://gh.io/copilot-code-review-docs |
|
| https://github.com/TheAlgorithms/Python/pull/14262/files/fd44b0abd22214bed89c20b3e19193654f00d341 |
|
| https://github.com/cclauss |
|
cclauss
| https://github.com/cclauss |
|
| https://github.com/TheAlgorithms/Python/pull/14262/files/2b4c4ff6e5a7886c15aaf9fdc8101d32e2304bfa |
|
| https://github.com/mindaugl |
|
mindaugl
| https://github.com/mindaugl |
|
| https://github.com/TheAlgorithms/Python/pull/14262/files/2b4c4ff6e5a7886c15aaf9fdc8101d32e2304bfa |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
|
enhancement
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/14262 |
|
| https://github.com/nupurvavhal |
|
| https://github.com/cclauss |
|
| https://github.com/mindaugl |
|
| https://github.com/apps/copilot-pull-request-reviewer |
|
| 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 |