Skip to content

fix: 403 issues when submitting code to leetcode - #23

Open
Its-treason wants to merge 1 commit into
ShackledMars261:mainfrom
Its-treason:403-fix
Open

fix: 403 issues when submitting code to leetcode#23
Its-treason wants to merge 1 commit into
ShackledMars261:mainfrom
Its-treason:403-fix

Conversation

@Its-treason

Copy link
Copy Markdown

Instead of calling the endpoint protected by Cloudflare the client now opens leet code for you and allows you to submit your solution there. This also has the good side effect that the solution is checked against all test cases, this filters out lazy solutions.

I've created a showcase of the new submit flow here: https://youtu.be/2nCaAEPFFjk


I just noticed that you can submit the code in any language. In the video I submitted them with Typescript even through I selected JavaScript as the language when creating the run.

Instead of calling the endpoint protected by cloudflare the client
now opens leetcode for you and allows you to submit you solution there.
This also has the good sideeffect that the soution is checked against
all test cases, this fiters out lazy solutions.
@ShackledMars261

Copy link
Copy Markdown
Owner

Looks good! Before I merge it though, does it work on problems that you have in the past submitted a valid solution for?

@Its-treason

Copy link
Copy Markdown
Author

Looks good! Before I merge it though, does it work on problems that you have in the past submitted a valid solution for?

Yes, you can resubmit a solved problem in leet code and the code just looks at the recent submissions.

@Its-treason

Copy link
Copy Markdown
Author

Also worth noting: Your submissions must be public, the setting is under https://leetcode.com/settings/profile/ and called "Recent AC Problems and Submission Details" on the bottom. I think its enabled by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants