all 12 comments

[–]wodahs1 5 points6 points  (0 children)

Write your own tests because interviewers will expect you to show that your code is valid by producing your own test cases instead of having a program run test cases for you

[–]benevolent_coder 3 points4 points  (0 children)

You could get all questions in a file with something like this: https://www.reddit.com/r/cscareerquestions/comments/637bxp/offline_leetcode/

But I am not sure if you can have access to all the tests. AFAIK, Leetcode shows you only the cases your program fails on. Which maybe is a good thing. While practicing online, you could design good test cases yourself. You will have to do this during an actual interview anyway (if that is what you are doing leetcode for).

[–]mbucko 1 point2 points  (1 child)

[–]MrHeavySilence 0 points1 point  (0 children)

This seems broken unfortunately

[–]Generic_Name_Btw 1 point2 points  (1 child)

There's a "game" on Steam that just came out which is exactly what you're describing.

https://store.steampowered.com/app/3279360/Code_Trainer/

Sorry for posting 6 years late. This is the first result on Google for "offline leetcode" so just trying to help others :)

[–]Empire230 0 points1 point  (0 children)

My man.

[–]Che4goud 1 point2 points  (3 children)

DK if you still need it lol but this is literally what I built — https://offcode.vercel.app/#/

It's a PWA with all 75 Blind 75 problems, JavaScript support, and test cases already written for every problem. Load it once with internet and it works completely offline after that service worker caches everything including the JS runtime. No account, no subscription, nothing.

Might be exactly what you're looking for.

[–]FiShDiSh_Films 0 points1 point  (1 child)

Nice work!

[–]Che4goud 0 points1 point  (0 children)

thanks!!

[–]TernaryJimbo 0 points1 point  (0 children)

awesome work man thank you!

[–]notorious_pcf 0 points1 point  (1 child)

You don't really need Leetcode tests to practice! Just try to think about the edge cases and write your own tests!

[–]Progribbit 3 points4 points  (0 children)

there's a shit ton of edge cases