René's URL Explorer Experiment


Title: Solution is being submitted to the wrong problem. · Issue #23 · fspv/python-leetcode · GitHub

Open Graph Title: Solution is being submitted to the wrong problem. · Issue #23 · fspv/python-leetcode

X Title: Solution is being submitted to the wrong problem. · Issue #23 · fspv/python-leetcode

Description: I have been trying to submit solutions but they keep getting submitted to the wrong problem/contest. Take an example using the snippet below. This code is supposed to be submitted to the walking-robot-simulation-ii problem which is quest...

Open Graph Description: I have been trying to submit solutions but they keep getting submitted to the wrong problem/contest. Take an example using the snippet below. This code is supposed to be submitted to the walking-ro...

X Description: I have been trying to submit solutions but they keep getting submitted to the wrong problem/contest. Take an example using the snippet below. This code is supposed to be submitted to the walking-ro...

Opengraph URL: https://github.com/fspv/python-leetcode/issues/23

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Solution is being submitted to the wrong problem.","articleBody":"I have been trying to submit solutions but they keep getting submitted to the wrong problem/contest. Take an example using the snippet below. This code is supposed to be submitted to the `walking-robot-simulation-ii` problem which is questionId, 2069. But for some reason, it is always submitted to a different problem: `kth-smallest-subarray-sum`. I verified this by checking the latest submission on my submissions on the leetcode website. I have tried this on other problems as well and it get it right on some occasions e.g.\"two sum\" and fail multiple times on others. What could be the reason and can you reproduce this on your side?\n```python\nimport os\nimport leetcode\nfrom leetcode.api_client import ApiClient\nfrom leetcode.configuration import Configuration\n\nconfiguration = Configuration()\nleetcode_session = os.getenv(\"LEETCODE_SESSION_ID\")\ncsrf_token = os.getenv(\"LEETCODE_CSRF_TOKEN\")\n\nconfiguration.api_key[\"x-csrftoken\"] = csrf_token\nconfiguration.api_key[\"csrftoken\"] = csrf_token\nconfiguration.api_key[\"LEETCODE_SESSION\"] = leetcode_session\nconfiguration.api_key[\"Referer\"] = \"https://leetcode.com\"\nconfiguration.debug = False\nconfiguration.api_key_prefix[\"Authorization\"] = \"Bearer\"\n\ncode = \"\"\"\n    from typing import List, Tuple\n    class Robot:\n        def __init__(self, width: int, height: int):\n            self.pos: List[Tuple[List[int], str]] = []\n            self.pos.append(([0, 0], \"South\"))\n            for i in range(1, width):\n                self.pos.append(([i, 0], \"East\"))\n            for j in range(1, height):\n                self.pos.append(([width - 1, j], \"North\"))\n            for i in range(width - 2, -1, -1):\n                self.pos.append(([i, height - 1], \"West\"))\n            for j in range(height - 2, 0, -1):\n                self.pos.append(([0, j], \"South\"))\n            self.isOrigin: bool = True\n            self.i: int = 0\n\n        def step(self, num: int) -> None:\n            self.isOrigin = False\n            self.i = (self.i + num) % len(self.pos)\n\n        def getPos(self) -> List[int]:\n            return self.pos[self.i][0]\n\n        def getDir(self) -> str:\n            return \"East\" if self.isOrigin else self.pos[self.i][1]\n        \"\"\"\n\nsubmission = leetcode.Submission(\n    typed_code=code,\n    judge_type=\"large\",\n    question_id=2069,\n    test_mode=False,\n    lang=\"python\",\n)\n\napi_instance = leetcode.DefaultApi(ApiClient(configuration))\n\nsubmission_id = api_instance.problems_problem_submit_post(\n    problem=\"walking-robot-simulation-ii\", body=submission\n)\nprint(submission_id)\n```\n\nAdditionally, when you try to get the result from the `submission_result = api_instance.submissions_detail_id_check_get(id=submission_id)`, you will get an error.","author":{"url":"https://github.com/jpangas","@type":"Person","name":"jpangas"},"datePublished":"2025-03-17T19:33:19Z","url":"https://github.com/fspv/python-leetcode/issues/23"}

react-profiling0
react-import-mapreact,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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5c2cf50c-605e-9ae3-2dfc-3b4bd81318f7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id84FA:69535:BC0120:10A1983:6AEC6FB0
html-safe-nonce61bef3f0a64103de7992924e93efcdaa900f66bdef032a5e0d90d0cc2b56b00a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEZBOjY5NTM1OkJDMDEyMDoxMEExOTgzOjZBRUM2RkIwIiwidmlzaXRvcl9pZCI6IjY1MTE3ODg4MzMzOTU5OTQ1NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac56c7a8692026d101443d3866a6d8936bb19efa9b81c44f70808c0a1bc7be9eaa
hovercard-subject-tagissue:2926162065
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/fspv/python-leetcode/23/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f3bfc1b0ae8c36a552cf504dce72a25751d9266d6b3793316488acee2dc3ed43/fspv/python-leetcode/issues/23
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f3bfc1b0ae8c36a552cf504dce72a25751d9266d6b3793316488acee2dc3ed43/fspv/python-leetcode/issues/23
og:image:altI have been trying to submit solutions but they keep getting submitted to the wrong problem/contest. Take an example using the snippet below. This code is supposed to be submitted to the walking-ro...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejpangas
hostnamegithub.com
expected-hostnamegithub.com
None81a8a223b8411e760195a15942ff045b37d56328f5bf02c4ca5f903e3dcb475e
turbo-cache-controlno-preview
go-importgithub.com/fspv/python-leetcode git https://github.com/fspv/python-leetcode.git
octolytics-dimension-user_id1616237
octolytics-dimension-user_loginfspv
octolytics-dimension-repository_id388199446
octolytics-dimension-repository_nwofspv/python-leetcode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id388199446
octolytics-dimension-repository_network_root_nwofspv/python-leetcode
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
releasea2c6dc5933515805b39ac7c5b9ab4e947c2f5a42
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/fspv/python-leetcode/issues/23#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffspv%2Fpython-leetcode%2Fissues%2F23
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%2Ffspv%2Fpython-leetcode%2Fissues%2F23
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=fspv%2Fpython-leetcode
Reloadhttps://github.com/fspv/python-leetcode/issues/23
Reloadhttps://github.com/fspv/python-leetcode/issues/23
Reloadhttps://github.com/fspv/python-leetcode/issues/23
fspvhttps://github.com/fspv
python-leetcodehttps://github.com/fspv/python-leetcode
Codehttps://github.com/fspv/python-leetcode
Issues5 (5)https://github.com/fspv/python-leetcode/issues
Pull requestshttps://github.com/fspv/python-leetcode/pulls
Actionshttps://github.com/fspv/python-leetcode/actions
Projectshttps://github.com/fspv/python-leetcode/projects
Security and qualityhttps://github.com/fspv/python-leetcode/security
Insightshttps://github.com/fspv/python-leetcode/pulse
https://github.com/fspv/python-leetcode
New issuehttps://github.com/login?return_to=https://github.com/fspv/python-leetcode/issues/23
New issuehttps://github.com/login?return_to=https://github.com/fspv/python-leetcode/issues/23
Solution is being submitted to the wrong problem.https://github.com/fspv/python-leetcode/issues/23#top
https://github.com/jpangas
jpangashttps://github.com/jpangas
on Mar 17, 2025https://github.com/fspv/python-leetcode/issues/23#issue-2926162065
https://github.com/jpangas
jpangashttps://github.com/jpangas
on Mar 17, 2025https://github.com/fspv/python-leetcode/issues/23#issuecomment-2730947239
https://github.com/fspv
fspvhttps://github.com/fspv
on Mar 18, 2025https://github.com/fspv/python-leetcode/issues/23#issuecomment-2732146887
@jpangashttps://github.com/jpangas
Sign up for freehttps://github.com/signup?return_to=https://github.com/fspv/python-leetcode/issues/23
Sign in to commenthttps://github.com/login?return_to=https://github.com/fspv/python-leetcode/issues/23
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.