René's URL Explorer Experiment


Title: fix(QuickSort): use low instead of hardcoded 0 in left recursive call by omprashantjain · Pull Request #2 · Complete-Coding/DSA_using_Java · GitHub

Open Graph Title: fix(QuickSort): use low instead of hardcoded 0 in left recursive call by omprashantjain · Pull Request #2 · Complete-Coding/DSA_using_Java

X Title: fix(QuickSort): use low instead of hardcoded 0 in left recursive call by omprashantjain · Pull Request #2 · Complete-Coding/DSA_using_Java

Description: Fixes #1 The left recursive call in quickSort used a hardcoded 0 as the lower bound instead of low: quickSort(nums, 0, partitionIndex - 1); // before quickSort(nums, low, partitionIndex - 1); // after Every left-partition call re-sorted the array from index 0 rather than from the start of the current sub-problem. The output stayed correct (the [0, low-1] prefix is already in place), but recursion work blew up to O(n²). On a descending array of 2000 elements the buggy version makes 1,001,001 quickSort invocations vs 3,999 after the fix — which is what can drive the reported StackOverflowError on large inputs. Validated by compiling and running the sort on several arrays (including descending and a 2000-element descending case); all sort correctly, and recursion depth is back to expected. Thanks to @UsaaryanByte07 for the clear report and root-cause trace.

Open Graph Description: Fixes #1 The left recursive call in quickSort used a hardcoded 0 as the lower bound instead of low: quickSort(nums, 0, partitionIndex - 1); // before quickSort(nums, low, partitionIndex - 1); // ...

X Description: Fixes #1 The left recursive call in quickSort used a hardcoded 0 as the lower bound instead of low: quickSort(nums, 0, partitionIndex - 1); // before quickSort(nums, low, partitionIndex - 1); // ...

Opengraph URL: https://github.com/Complete-Coding/DSA_using_Java/pull/2

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4dc3464c-fac5-5d22-7dd6-0a672de538a6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idADAA:39E9A3:3F2F50:594212:6A59DC14
html-safe-nonce5fbb746458dc1ec06c8d23211ceb003eda981b4577c6a3ab40005379e2ff1f25
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREFBOjM5RTlBMzozRjJGNTA6NTk0MjEyOjZBNTlEQzE0IiwidmlzaXRvcl9pZCI6IjgyMjE3NTA4NTAyMDY5NDgzNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac01cebdc51919c7e589ca9845a903a7635135160c23b3132731514f09decfaf0c
hovercard-subject-tagpull_request:3907245312
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Complete-Coding/DSA_using_Java/pull/2/files
twitter:imagehttps://avatars.githubusercontent.com/u/102736197?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/102736197?s=400&v=4
og:image:altFixes #1 The left recursive call in quickSort used a hardcoded 0 as the lower bound instead of low: quickSort(nums, 0, partitionIndex - 1); // before quickSort(nums, low, partitionIndex - 1); // ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Complete-Coding/DSA_using_Java git https://github.com/Complete-Coding/DSA_using_Java.git
octolytics-dimension-user_id147902612
octolytics-dimension-user_loginComplete-Coding
octolytics-dimension-repository_id488878540
octolytics-dimension-repository_nwoComplete-Coding/DSA_using_Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id488878540
octolytics-dimension-repository_network_root_nwoComplete-Coding/DSA_using_Java
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26f17126414f953984d8ae42f57c0db48e7dbde3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FComplete-Coding%2FDSA_using_Java%2Fpull%2F2%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FComplete-Coding%2FDSA_using_Java%2Fpull%2F2%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Complete-Coding%2FDSA_using_Java
Reloadhttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Reloadhttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Reloadhttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Please reload this pagehttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Complete-Coding https://github.com/Complete-Coding
DSA_using_Javahttps://github.com/Complete-Coding/DSA_using_Java
Notifications https://github.com/login?return_to=%2FComplete-Coding%2FDSA_using_Java
Fork 15 https://github.com/login?return_to=%2FComplete-Coding%2FDSA_using_Java
Star 38 https://github.com/login?return_to=%2FComplete-Coding%2FDSA_using_Java
Code https://github.com/Complete-Coding/DSA_using_Java
Issues 0 https://github.com/Complete-Coding/DSA_using_Java/issues
Pull requests 0 https://github.com/Complete-Coding/DSA_using_Java/pulls
Actions https://github.com/Complete-Coding/DSA_using_Java/actions
Projects https://github.com/Complete-Coding/DSA_using_Java/projects
Security and quality 0 https://github.com/Complete-Coding/DSA_using_Java/security
Insights https://github.com/Complete-Coding/DSA_using_Java/pulse
Code https://github.com/Complete-Coding/DSA_using_Java
Issues https://github.com/Complete-Coding/DSA_using_Java/issues
Pull requests https://github.com/Complete-Coding/DSA_using_Java/pulls
Actions https://github.com/Complete-Coding/DSA_using_Java/actions
Projects https://github.com/Complete-Coding/DSA_using_Java/projects
Security and quality https://github.com/Complete-Coding/DSA_using_Java/security
Insights https://github.com/Complete-Coding/DSA_using_Java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FComplete-Coding%2FDSA_using_Java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FComplete-Coding%2FDSA_using_Java%2Fissues%2Fnew%2Fchoose
omprashantjainhttps://github.com/omprashantjain
mainhttps://github.com/Complete-Coding/DSA_using_Java/tree/main
prashant/fix-quicksort-lowhttps://github.com/Complete-Coding/DSA_using_Java/tree/prashant/fix-quicksort-low
Conversation 0 https://github.com/Complete-Coding/DSA_using_Java/pull/2
Commits 1 https://github.com/Complete-Coding/DSA_using_Java/pull/2/commits
Checks 0 https://github.com/Complete-Coding/DSA_using_Java/pull/2/checks
Files changed https://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Please reload this pagehttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
fix(QuickSort): use low instead of hardcoded 0 in left recursive call https://github.com/Complete-Coding/DSA_using_Java/pull/2/files#top
Show all changes 1 commit https://github.com/Complete-Coding/DSA_using_Java/pull/2/files
8d842a6 fix(QuickSort): use low instead of hardcoded 0 in left recursive call omprashantjain Jun 21, 2026 https://github.com/Complete-Coding/DSA_using_Java/pull/2/commits/8d842a64359251efd4c0dad74ad7b41b99bdfc31
Clear filters https://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Please reload this pagehttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
Please reload this pagehttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files
4 Other Problems/QuickSort.javahttps://github.com/Complete-Coding/DSA_using_Java/pull/2/files#diff-40341c7cfcd339c32ff1e0733418be31c72601d0218ec43cd3fdbb47a21ea445
View file https://github.com/Complete-Coding/DSA_using_Java/blob/8d842a64359251efd4c0dad74ad7b41b99bdfc31/4%20Other%20Problems/QuickSort.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Complete-Coding/DSA_using_Java/pull/2/{{ revealButtonHref }}
https://github.com/Complete-Coding/DSA_using_Java/pull/2/files#diff-40341c7cfcd339c32ff1e0733418be31c72601d0218ec43cd3fdbb47a21ea445
https://github.com/Complete-Coding/DSA_using_Java/pull/2/files#diff-40341c7cfcd339c32ff1e0733418be31c72601d0218ec43cd3fdbb47a21ea445
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.