René's URL Explorer Experiment


Title: test: verify SimplifiedWiggleSort invariant and duplicate handling by bhavsartaran04-ui · Pull Request #82 · S-AI-Projects/TheAlgorithms-JavaScript · GitHub

Open Graph Title: test: verify SimplifiedWiggleSort invariant and duplicate handling by bhavsartaran04-ui · Pull Request #82 · S-AI-Projects/TheAlgorithms-JavaScript

X Title: test: verify SimplifiedWiggleSort invariant and duplicate handling by bhavsartaran04-ui · Pull Request #82 · S-AI-Projects/TheAlgorithms-JavaScript

Description: Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Documentation change? Description Add deterministic invariant tests for weak wiggle order, multiset preservation, and the input mutation/return contract. Fix the duplicate-heavy QuickSelect path that failed to terminate. Related Issue #14 Fixes: #14 Type of Change Bug Fix Tests Documentation Changes Made Replace the non-terminating median-selection path with sorting and interleaving lower and upper halves. Preserve the observable input mutation behavior and return a separate wiggle-ordered array. Test five readable fixtures and 100 deterministic bounded arrays. Add a temporary mutant check that confirms the multiset assertion detects a dropped output element. Screenshots / Recordings Not applicable. Testing python3 work/R50-T014/check.py — passed; focused 12 tests, full suite 346 files / 11,978 tests, and mutation check. npm run check-style — passed. Baseline reproduction: original QuickSelect implementation timed out after 3 seconds on [-1,3,-1,-4,-5,0,4,2,4,5]. Additional Notes The return contract is the documented weak wiggle pattern (<=, then >=); it is not an ascending sorter. See work/R50-T014/README.md and mutation-check.mjs. AI assistance was used to prepare the implementation and tests. Checklist I have tested my changes locally. I have added or updated tests, if needed. I have updated documentation, if needed. I have followed the project's coding guidelines. I have run the relevant tests and checks. I have addressed previous review feedback, if applicable.

Open Graph Description: Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Documentation change? Description Add deterministic invariant tests for weak wiggle order, multiset preserva...

X Description: Describe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Documentation change? Description Add deterministic invariant tests for weak wiggle order, multiset preserva...

Opengraph URL: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8c33298f-fff6-ff8a-de32-a18ce13643c8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8B2A:2AAD2E:2D5A3D9:3C96403:6B01D763
html-safe-nonce5b5299905d595297f9211152c21383b441da2dc45f36c33d83c837128fd1f52a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjJBOjJBQUQyRToyRDVBM0Q5OjNDOTY0MDM6NkIwMUQ3NjMiLCJ2aXNpdG9yX2lkIjoiMzAyMTQ3OTEwNzYzNzY2MzU4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1b9439ca8f7d052f55341026a5ffa397e0b9581e0ee7d3a6069394e2a98140c4
hovercard-subject-tagpull_request:5391012608
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/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
twitter:imagehttps://avatars.githubusercontent.com/u/291235010?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/291235010?s=400&v=4
og:image:altDescribe your change: Add an algorithm? Fix a bug or typo in an existing algorithm? Documentation change? Description Add deterministic invariant tests for weak wiggle order, multiset preserva...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/S-AI-Projects/TheAlgorithms-JavaScript git https://github.com/S-AI-Projects/TheAlgorithms-JavaScript.git
octolytics-dimension-user_id351892385
octolytics-dimension-user_loginS-AI-Projects
octolytics-dimension-repository_id1444142713
octolytics-dimension-repository_nwoS-AI-Projects/TheAlgorithms-JavaScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id97086543
octolytics-dimension-repository_parent_nwoTheAlgorithms/JavaScript
octolytics-dimension-repository_network_root_id97086543
octolytics-dimension-repository_network_root_nwoTheAlgorithms/JavaScript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fpull%2F82%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fpull%2F82%2Ffiles
Sign uphttps://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=S-AI-Projects%2FTheAlgorithms-JavaScript
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
S-AI-Projectshttps://github.com/S-AI-Projects
TheAlgorithms-JavaScripthttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript
Codehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript
Issues50 (50)https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues
Pull requests30 (30)https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pulls
Actionshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/actions
Projectshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/projects
Security and qualityhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/security
Insightshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/insights
Sign up for GitHub https://github.com/signup?return_to=%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fissues%2Fnew%2Fchoose
bhavsartaran04-uihttps://github.com/bhavsartaran04-ui
S-AI-Projects:masterhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/tree/master
bhavsartaran04-ui:student/e26b07f0891/R50-T014https://github.com/bhavsartaran04-ui/TheAlgorithms-JavaScript/tree/student/e26b07f0891/R50-T014
Conversation 0 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82
Commits 1 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/commits
Checks 0 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/checks
Files changed https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
Please reload this pagehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
test: verify SimplifiedWiggleSort invariant and duplicate handling https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#top
Show all changes 1 commit https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
a90a06b test: verify SimplifiedWiggleSort invariant and duplicate handling bhavsartaran04-ui Nov 19, 2026 https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/commits/a90a06b7cdb261d1c93a952a4f43d161db7c12c3
Clear filters https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
Please reload this pagehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
Please reload this pagehttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files
SimplifiedWiggleSort.js https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-64e8dd4ee35bb747c0862d91ca31466c6f960321258e4cba9e4fd62b02396c22
SimplifiedWiggleSort.test.js https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-4bfa7f0c99ccbf61eb59f8a8e38816d36a24beee5daedaeb65bbc8dc91e4bcee
README.md https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-14e70330c94345bfcca4d86ff6ebebcc477eaddccf9bcbcd0e274785a59e70bc
check.py https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-37e8c7c3257fe9e61c7bbd9912c45f9c232ad48d5c5b4a83e4d2e8c3b03e0c29
mutation-check.mjs https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-121caca23473816bb43b733d2592ee611fc0e5fd373a18b57f866ed4ece63b26
Sorts/SimplifiedWiggleSort.jshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-64e8dd4ee35bb747c0862d91ca31466c6f960321258e4cba9e4fd62b02396c22
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/a90a06b7cdb261d1c93a952a4f43d161db7c12c3/Sorts/SimplifiedWiggleSort.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/{{ revealButtonHref }}
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-64e8dd4ee35bb747c0862d91ca31466c6f960321258e4cba9e4fd62b02396c22
Sorts/test/SimplifiedWiggleSort.test.jshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-4bfa7f0c99ccbf61eb59f8a8e38816d36a24beee5daedaeb65bbc8dc91e4bcee
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/a90a06b7cdb261d1c93a952a4f43d161db7c12c3/Sorts/test/SimplifiedWiggleSort.test.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/{{ revealButtonHref }}
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-4bfa7f0c99ccbf61eb59f8a8e38816d36a24beee5daedaeb65bbc8dc91e4bcee
work/R50-T014/README.mdhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-14e70330c94345bfcca4d86ff6ebebcc477eaddccf9bcbcd0e274785a59e70bc
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/a90a06b7cdb261d1c93a952a4f43d161db7c12c3/work/R50-T014/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/{{ revealButtonHref }}
work/R50-T014/check.pyhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-37e8c7c3257fe9e61c7bbd9912c45f9c232ad48d5c5b4a83e4d2e8c3b03e0c29
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/a90a06b7cdb261d1c93a952a4f43d161db7c12c3/work/R50-T014/check.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/{{ revealButtonHref }}
work/R50-T014/mutation-check.mjshttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/files#diff-121caca23473816bb43b733d2592ee611fc0e5fd373a18b57f866ed4ece63b26
View file https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/blob/a90a06b7cdb261d1c93a952a4f43d161db7c12c3/work/R50-T014/mutation-check.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/82/{{ revealButtonHref }}
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.