René's URL Explorer Experiment


Title: Stavan Somaiya — R50-T003: Cross-check getParentPosition (KeyPriorityQueue.js) [Data-Structures/Heap/KeyPriorityQueue.js] · Issue #3 · S-AI-Projects/TheAlgorithms-JavaScript · GitHub

Open Graph Title: Stavan Somaiya — R50-T003: Cross-check getParentPosition (KeyPriorityQueue.js) [Data-Structures/Heap/KeyPriorityQueue.js] · Issue #3 · S-AI-Projects/TheAlgorithms-JavaScript

X Title: Stavan Somaiya — R50-T003: Cross-check getParentPosition (KeyPriorityQueue.js) [Data-Structures/Heap/KeyPriorityQueue.js] · Issue #3 · S-AI-Projects/TheAlgorithms-JavaScript

Description: Student: Stavan Somaiya Task: R50-T003 · 3 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript Assigned working branch: student/e26b07f1064 Goal Work on Data-Structures/Heap/KeyPriorityQueue.js. Compare getParentP...

Open Graph Description: Student: Stavan Somaiya Task: R50-T003 · 3 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript Assigned working branch: student/e26b07f1064 Goal Work on Data-Structures/Heap...

X Description: Student: Stavan Somaiya Task: R50-T003 · 3 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript Assigned working branch: student/e26b07f1064 Goal Work on Data-Structures/Heap...

Opengraph URL: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stavan Somaiya — R50-T003: Cross-check getParentPosition (KeyPriorityQueue.js) [Data-Structures/Heap/KeyPriorityQueue.js]","articleBody":"\u003c!-- sai-task-v1:R50-T003 -->\n\n## Student: Stavan Somaiya\n\n**Task:** R50-T003 · 3 of 10\n**Repository:** https://github.com/S-AI-Projects/TheAlgorithms-JavaScript\n**Assigned working branch:** `student/e26b07f1064`\n\n## Goal\n\nWork on Data-Structures/Heap/KeyPriorityQueue.js. Compare `getParentPosition` against a small independent reference for the same domain. FIFO order and size agree after each operation; separate instances do not share contents. Fixture: Enqueue A, B and C; remove twice; insert D; drain the queue. The removal order must be A, B, C, D. Exercise the documented empty-state behavior.\n\n## Steps\n\n1. Read Data-Structures/Heap/KeyPriorityQueue.js, especially `getParentPosition` near line 22. Record its public inputs, result, mutation behavior and any external dependencies before changing it.\n2. Write the simplest independently understandable oracle for small inputs, or calculate a fixed expected-result table when an oracle would duplicate the same algorithm.\n3. Enumerate at least 20 small valid inputs (or the entire domain if smaller) and compare outputs, ignoring only ordering the contract explicitly leaves unspecified.\n4. Implement work/R50-T003/check.py as a focused runner that executes the new checks and propagates failures. Native check to incorporate: run the repository test script in non-watch mode after installing from its lockfile; for browser-only code use a browser test instead of plain Node. Record the actual command and nonzero test count.\n5. Create the checks specified below and run `python3 work/R50-T003/check.py`. Save inputs, expected versus actual results and tool versions in work/R50-T003/; a check must exit non-zero when an assertion fails.\n6. Commit the repository change on branch R50-T003; prepare a PR to the organisation fork explaining the result and linking the checks. Keep each task independently reviewable. Remove work/R50-T003/ from a later upstream branch.\n\n## Done when\n\n☐ The checked behavior is tied to `getParentPosition` in Data-Structures/Heap/KeyPriorityQueue.js; every assertion has an explicit expected value.\n☐ Enqueue A, B and C; remove twice; insert D; drain the queue. The removal order must be A, B, C, D. Exercise the documented empty-state behavior.\n☐ Existing supported behavior and the public interface are preserved unless a failing regression demonstrates and documents a defect.\n☐ The oracle uses a different method or a reviewed explicit result table; it does not call the function under test.\n☐ A mismatch is reduced to a minimal reproducible case and documented before any fix.\n\n\u003cdetails>\n\u003csummary>Additional task guidance\u003c/summary>\n\n\nAdditional curated task guidance\n\nItem:\nData-Structures/Heap/KeyPriorityQueue.js\n\nTask type:\nIndependent reference comparison\n\nCode change (goes into the PR):\nAdd reference-comparison regression tests for Data-Structures/Heap/KeyPriorityQueue.js; explain one representative result in its source documentation.\n\nAutomated check:\npython3 work/R50-T003/check.py\n\nPrerequisites:\nNode matching the project engines/CI, package manager selected by its lockfile, and Python 3.\n\nUpstream PR rules:\nPreserve the repository JavaScript style, use its test framework, and include JSDoc for changed public behavior. Submit coursework to the organisation fork first; keep work/ evidence out of any later upstream PR. Upstream acceptance is not a grading requirement. Policy: https://github.com/TheAlgorithms/JavaScript/blob/5c39e87a9a31f279c60f830ad74a845e4788a517/CONTRIBUTING.md\n\nSource (pinned):\nhttps://github.com/TheAlgorithms/JavaScript/blob/5c39e87a9a31f279c60f830ad74a845e4788a517/Data-Structures/Heap/KeyPriorityQueue.js#L22\n\nChange:\nReplaces the shared task template with an item-specific contribution brief.\n\nPR destination:\nUpstream candidate after review\n\n\n\u003c/details>\n\n## Submission checklist\n\n- [ ] Complete this task and its checks.\n- [ ] Add the required evidence and link your pull request here.\n- [ ] Select this **S-AI-Projects fork** as the PR base repository.\n- [ ] Request instructor review.\n\nKeep this PR focused on this task. Do not submit assignment PRs to the upstream repository.","author":{"url":"https://github.com/ankushbisht01","@type":"Person","name":"ankushbisht01"},"datePublished":"2026-11-03T23:29:49Z","url":"https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:732fe36a-9368-6c6c-75cc-21d9891b6db4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8678:32CBBB:2F51C91:3F5F055:6B06DAC1
html-safe-nonce2dc86a89f2fadbbef8c8b885e7ff0f97d6bddea7ebf3dffb1616eb8e7afdfde6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Njc4OjMyQ0JCQjoyRjUxQzkxOjNGNUYwNTU6NkIwNkRBQzEiLCJ2aXNpdG9yX2lkIjoiMzYzODgwMTYxMTg1OTg3NjU0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac89fbef582ecbd0564491058161e33771944516940824ee01826d8d6be8bb598a
hovercard-subject-tagissue:6193060921
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/S-AI-Projects/TheAlgorithms-JavaScript/3/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a7b4416e97b824d46fde6a28e68496b8bfbee5c466eec58801ae3c6256afc37f/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a7b4416e97b824d46fde6a28e68496b8bfbee5c466eec58801ae3c6256afc37f/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
og:image:altStudent: Stavan Somaiya Task: R50-T003 · 3 of 10 Repository: https://github.com/S-AI-Projects/TheAlgorithms-JavaScript Assigned working branch: student/e26b07f1064 Goal Work on Data-Structures/Heap...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameankushbisht01
hostnamegithub.com
expected-hostnamegithub.com
None06cadd0061c549662a50be90eb5baba7608f00f521574931eec01db0deb9e636
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6953c712585a8d7406b7695e48fffcb670fd241d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FS-AI-Projects%2FTheAlgorithms-JavaScript%2Fissues%2F3
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%2Fissues%2F3
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=S-AI-Projects%2FTheAlgorithms-JavaScript
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
Reloadhttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
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 requests50 (50)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
https://github.com/S-AI-Projects/TheAlgorithms-JavaScript
New issuehttps://github.com/login?return_to=https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
New issuehttps://github.com/login?return_to=https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
#101https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/101
Stavan Somaiya — R50-T003: Cross-check getParentPosition (KeyPriorityQueue.js) [Data-Structures/Heap/KeyPriorityQueue.js]https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3#top
#101https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/101
https://github.com/ankushbisht01
ankushbisht01https://github.com/ankushbisht01
on Nov 3, 2026https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3#issue-6193060921
https://github.com/S-AI-Projects/TheAlgorithms-JavaScripthttps://github.com/S-AI-Projects/TheAlgorithms-JavaScript
https://github.com/TheAlgorithms/JavaScript/blob/5c39e87a9a31f279c60f830ad74a845e4788a517/CONTRIBUTING.mdhttps://github.com/TheAlgorithms/JavaScript/blob/5c39e87a9a31f279c60f830ad74a845e4788a517/CONTRIBUTING.md
https://github.com/TheAlgorithms/JavaScript/blob/5c39e87a9a31f279c60f830ad74a845e4788a517/Data-Structures/Heap/KeyPriorityQueue.js#L22https://github.com/TheAlgorithms/JavaScript/blob/5c39e87a9a31f279c60f830ad74a845e4788a517/Data-Structures/Heap/KeyPriorityQueue.js#L22
https://github.com/stavansomaiya
stavansomaiyahttps://github.com/stavansomaiya
on Nov 23, 2026https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3#issuecomment-7097400747
#101https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/pull/101
#3https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
Sign up for freehttps://github.com/signup?return_to=https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
Sign in to commenthttps://github.com/login?return_to=https://github.com/S-AI-Projects/TheAlgorithms-JavaScript/issues/3
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.