| 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:47d65389-68c0-a9d5-0a12-12e0231bdeae |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D5FA:1D4A3:15175A9:1CCC75D:6AFB7657 |
| html-safe-nonce | e711623e53dce8b23dab2b0f3c410e884db3871064eb3ade8f5792dc0c43f78a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUZBOjFENEEzOjE1MTc1QTk6MUNDQzc1RDo2QUZCNzY1NyIsInZpc2l0b3JfaWQiOiIxNDYzODQzNjI1MDAyMzAxMDE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d8d17858282478c97b7d11871691d74088d91e8619c03bbbe0275e2a4fe7e49e |
| hovercard-subject-tag | pull_request:4218296984 |
| 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/15009/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/3c1a9a5cad4b62a8ac25d05cba55be8b309f61373ee00b61b61cb42e51d3aad3/TheAlgorithms/Python/pull/15009 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c1a9a5cad4b62a8ac25d05cba55be8b309f61373ee00b61b61cb42e51d3aad3/TheAlgorithms/Python/pull/15009 |
| og:image:alt | Describe your change:
Added input validation to the cyclic_sort algorithm to prevent invalid inputs from causing infinite loops or incorrect results.
The function now raises a ValueError when:
the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gairola788 |
| 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/15009#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F15009 |
| 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%2F15009 |
| 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/15009 |
| Reload | https://github.com/TheAlgorithms/Python/pull/15009 |
| Reload | https://github.com/TheAlgorithms/Python/pull/15009 |
| 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 |
| Gairola788:fix-cyclic-sort-validation | https://github.com/Gairola788/PythonDev/tree/fix-cyclic-sort-validation |
| Conversation | https://github.com/TheAlgorithms/Python/pull/15009 |
| Commits8 (8) | https://github.com/TheAlgorithms/Python/pull/15009/commits |
| Checks | https://github.com/TheAlgorithms/Python/pull/15009/checks |
| Files changed | https://github.com/TheAlgorithms/Python/pull/15009/files |
| Add input validation to cyclic_sort to prevent invalid inputs | https://github.com/TheAlgorithms/Python/pull/15009#top |
| cclauss | https://github.com/cclauss |
| TheAlgorithms:master | https://github.com/TheAlgorithms/Python/tree/master |
| Gairola788:fix-cyclic-sort-validation | https://github.com/Gairola788/PythonDev/tree/fix-cyclic-sort-validation |
|
| https://github.com/Gairola788 |
| Gairola788 | https://github.com/Gairola788 |
| Aug 6, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#issue-5078113789 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| #14898 | https://github.com/TheAlgorithms/Python/issues/14898 |
| #14899 | https://github.com/TheAlgorithms/Python/pull/14899 |
| #15026 | https://github.com/TheAlgorithms/Python/pull/15026 |
| #15050 | https://github.com/TheAlgorithms/Python/pull/15050 |
| CONTRIBUTING.md | https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md |
| cyclic_sort.py has no input validation, causes infinite loop on invalid input #14898 | https://github.com/TheAlgorithms/Python/issues/14898 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| Gairola788 | https://github.com/Gairola788 |
| August 6, 2026 11:09 | https://github.com/TheAlgorithms/Python/pull/15009#commits-pushed-6379ae3 |
|
| https://github.com/Gairola788 |
| Add input validation to cyclic_sort | https://github.com/TheAlgorithms/Python/pull/15009/commits/6379ae3fc631d786407c6c340924002af403a9b9 |
| 6379ae3 | https://github.com/TheAlgorithms/Python/pull/15009/commits/6379ae3fc631d786407c6c340924002af403a9b9 |
|
| https://github.com/Gairola788 |
| Add input validation to cyclic_sort | https://github.com/TheAlgorithms/Python/pull/15009/commits/163b615d196bd3797fa9cb32918371a2fc939406 |
| 163b615 | https://github.com/TheAlgorithms/Python/pull/15009/commits/163b615d196bd3797fa9cb32918371a2fc939406 |
| 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 |
| Aug 6, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#event-29050173477 |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/15009/commits/2a080f271f99ff0a98348ec01c1a498065508206 |
| 2a080f2 | https://github.com/TheAlgorithms/Python/pull/15009/commits/2a080f271f99ff0a98348ec01c1a498065508206 |
| https://pre-commit.ci | https://pre-commit.ci |
| 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 |
| Aug 6, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#event-29050318254 |
| Gairola788 | https://github.com/Gairola788 |
| August 6, 2026 11:57 | https://github.com/TheAlgorithms/Python/pull/15009#commits-pushed-9d48bf8 |
|
| https://github.com/Gairola788 |
| f string literal bug resolved | https://github.com/TheAlgorithms/Python/pull/15009/commits/9d48bf882dbc98108d934e1ff180ac8fda3787b6 |
| 9d48bf8 | https://github.com/TheAlgorithms/Python/pull/15009/commits/9d48bf882dbc98108d934e1ff180ac8fda3787b6 |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/15009/commits/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
| 09f3e80 | https://github.com/TheAlgorithms/Python/pull/15009/commits/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
| https://pre-commit.ci | https://pre-commit.ci |
| 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 |
| Aug 6, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#event-29051745637 |
| https://github.com/mindaugl |
| mindaugl | https://github.com/mindaugl |
|
Aug 6, 2026
| https://github.com/TheAlgorithms/Python/pull/15009#pullrequestreview-4874464969 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/15009/files/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
| https://github.com/Claudiocli |
| Claudiocli | https://github.com/Claudiocli |
|
Aug 7, 2026
| https://github.com/TheAlgorithms/Python/pull/15009#pullrequestreview-4881784471 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/15009/files/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
| Claudiocli | https://github.com/Claudiocli |
| https://github.com/TheAlgorithms/Python/pull/15009#pullrequestreview-4881784471 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| https://github.com/Gairola788 |
| Gairola788 | https://github.com/Gairola788 |
| Aug 7, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#issuecomment-5217603966 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| https://github.com/daltino |
| daltino | https://github.com/daltino |
|
Aug 11, 2026
| https://github.com/TheAlgorithms/Python/pull/15009#pullrequestreview-4902008840 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/15009/files/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
| daltino | https://github.com/daltino |
| https://github.com/TheAlgorithms/Python/pull/15009#pullrequestreview-4902008840 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| Gairola788 | https://github.com/Gairola788 |
| August 11, 2026 22:42 | https://github.com/TheAlgorithms/Python/pull/15009#commits-pushed-eb72cc3 |
|
| https://github.com/Gairola788 |
| test cyclic sort input validation | https://github.com/TheAlgorithms/Python/pull/15009/commits/eb72cc34e22bdb1b8f89033b4f57da4539601db5 |
| eb72cc3 | https://github.com/TheAlgorithms/Python/pull/15009/commits/eb72cc34e22bdb1b8f89033b4f57da4539601db5 |
|
| https://github.com/marketplace/pre-commit-ci |
| [pre-commit.ci] auto fixes from pre-commit.com hooks | https://github.com/TheAlgorithms/Python/pull/15009/commits/4012c49f80907d2ce7d5965fc41cf3edf1aa7030 |
| 4012c49 | https://github.com/TheAlgorithms/Python/pull/15009/commits/4012c49f80907d2ce7d5965fc41cf3edf1aa7030 |
| https://pre-commit.ci | https://pre-commit.ci |
| https://github.com/Gairola788 |
| Gairola788 | https://github.com/Gairola788 |
| Aug 11, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#issuecomment-5256522428 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| https://github.com/Gairola788 |
| Gairola788 | https://github.com/Gairola788 |
| daltino | https://github.com/daltino |
| August 26, 2026 15:50 | https://github.com/TheAlgorithms/Python/pull/15009#event-30053437065 |
|
| https://github.com/Gairola788 |
| Merge branch 'master' into fix-cyclic-sort-validation | https://github.com/TheAlgorithms/Python/pull/15009/commits/abb502627f2abb1ce5ae0b444e658f509551ef64 |
| abb5026 | https://github.com/TheAlgorithms/Python/pull/15009/commits/abb502627f2abb1ce5ae0b444e658f509551ef64 |
| https://github.com/priya-sundaram-dev |
| priya-sundaram-dev | https://github.com/priya-sundaram-dev |
|
Sep 9, 2026
| https://github.com/TheAlgorithms/Python/pull/15009#ref-issue-5242842322 |
|
priya-sundaram-dev as a triager?
#15081
| https://github.com/TheAlgorithms/Python/issues/15081 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
|
Sep 9, 2026
| https://github.com/TheAlgorithms/Python/pull/15009#pullrequestreview-5154119949 |
|
View reviewed changes
| https://github.com/TheAlgorithms/Python/pull/15009/files/abb502627f2abb1ce5ae0b444e658f509551ef64 |
| 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 9, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#event-30827358008 |
| https://github.com/cclauss |
| cclauss | https://github.com/cclauss |
| c2318ab | https://github.com/TheAlgorithms/Python/commit/c2318ab63c820b043242695ce15f74b52714c29a |
| Sep 9, 2026 | https://github.com/TheAlgorithms/Python/pull/15009#event-30827364882 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
| 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%2F15009 |
|
| https://github.com/cclauss |
|
cclauss
| https://github.com/cclauss |
|
| https://github.com/TheAlgorithms/Python/pull/15009/files/abb502627f2abb1ce5ae0b444e658f509551ef64 |
|
| https://github.com/daltino |
|
daltino
| https://github.com/daltino |
|
| https://github.com/Claudiocli |
|
Claudiocli
| https://github.com/Claudiocli |
|
| https://github.com/TheAlgorithms/Python/pull/15009/files/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
|
| https://github.com/mindaugl |
|
mindaugl
| https://github.com/mindaugl |
|
| https://github.com/TheAlgorithms/Python/pull/15009/files/09f3e803b9b9c1e2dab2eb8a8526e212f0f5c88a |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
|
enhancement
| https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement |
|
cyclic_sort.py has no input validation, causes infinite loop on invalid input
| https://github.com/TheAlgorithms/Python/issues/14898 |
| Please reload this page | https://github.com/TheAlgorithms/Python/pull/15009 |
|
| https://github.com/Gairola788 |
|
| https://github.com/daltino |
|
| https://github.com/cclauss |
|
| https://github.com/Claudiocli |
|
| https://github.com/mindaugl |
|
| 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 |