tried to do leetcode and instead i almost cried
Posted by One-Understanding564@reddit | learnprogramming | View on Reddit | 42 comments
hello! i'm a college student currently a sophomore enrolled in CS with focus in game dev and AI. i have pretty beginner knowledge of coding. i learned HTML,CSS, JS, Java, python, SQL and all 3 c languages. mainly through freecodecamp and sololearn which i guess might be a problem too
i really enjoy coding and am wanting to really level up especially now since AI is now heavily integrated. I was doing leetcode a couple of days ago and only got through problem #1 and was struggling to do other ones. i started tearing up because I felt like i knew nothing. i also did beginner edabit problems until my free trial ended.
most project sites ive seen seem pretty advanced(i think). i tried to make a todo website with HTML and JS but didn't even know where to start. i even followed tutorials for tic tac toe on JS and react
i know threads like this already exist but i feel lost on how to actually build my skills and i dont really know where to actually start. what are ways for me to truly know how to code? is following tutorials actually helpful? are there any other free sites like edabit? maybe some really beginner project ideas?
i was also debating on just using Ai to solve the leetcode problems and have it thoroughly explain the solution to me.
thank you for any help.
FamilirStom4275@reddit
bro, same here, i thought i was decent at coding until leetcode hit me with those questions. ngl, it's like they want you to cry for real.
caeljk@reddit
I like all the other suggestions in this thread. But leetCode isnt the be all or end all. You can also throw a hash map at most of them.
dramatic_floof@reddit
i'm also a cs sophomore starting to try out leetcode stuffs i'd love to study together!
mredding@reddit
...
You see what's going on here?
There is a hump to get over - thinking like an engineer. It's a hell of a hump, but there is the other side. You'll get there.
iLiveForTruth@reddit
Leetcode made me feel weirdly dumb when I first touched it too. You’re mixing like 8 languages, tutorials, projects, AI, game dev, interview puzzles... that’s a lot.
Pick one lane for a bit. Build one tiny ugly project without a tutorial and let it be messy.
Leetcode problem 2 kicking your ass as a sophomore is not a crisis
EdwardElric69@reddit
I just graduated a 4 year degree. Starting a job in august.
I also looked at leetcode in my 2nd year. Java easy. The question was about calculating the point at which two objects colide within a video game.
Like a bullet colliding with a player model. I didnt even know where to begin. I don't think I'd be able to solve that easily if I tried now lol.
Never_play_f6@reddit
Nobody in the real world will care of you suck at leetcode. If you want to prepare for job interviews, learn something useful instead.
KeenanIsGod@reddit
The jump from I can code to I can solve algorithm puzzles under pressure is way bigger than people admit.
pinkpepr@reddit
My personal advice is spend 15-20 minutes trying to solve the problem and if you can't, look it up on YouTube and watch someone's walkthrough on it. Study their solution until you understand it and then solve the problem and submit your solution.
Finding DSA intimidating is nornal. Don't worry about it. It's like a muscle, you just have to keep at it.
wingelefoot@reddit
Do the Scott wu method.
crawlpatterns@reddit
leetcode way too early can seriously mess with your confidence, especially when you’re still learning how to actually build things. honestly the fact you even attempted it means you’re already putting in more effort than alot of students do at that stage. tutorials are fine in the beginning btw, the important part is trying to change small things after following them so your brain starts connecting the dots on its own. i’d focus more on tiny projects first like a basic calculator, notes app, or simple game before grinding leetcode nonstop because thats where coding finally started “clicking” for me too.
KandevDev@reddit
leetcode is a separate skill from programming. genuinely. that you almost cried doesn't mean you're not cut out for this work, it means you spent 2 hours on an interview gotcha and the only signal you got was 'i can't do this in 30 minutes'. that's not a programming feedback loop, that's an interview feedback loop.
EnjoysAvocados@reddit
Leetcode is an acquired seperate skill. If you're just starting out you need a more gradual on ramp like code wars. Start with 8 kyu move down to the next level until you start to get stuck, then go back up a level and keep grinding. You can try DSA as others have mentioned but even that might be jumping into the deep end. If you aren't comfortable with functions, string manipulation, array iteration and object creation / access yet, DSA is going to be near impossible. The 8 kyu to 6 kyu code wars range will test your skills in those areas.
If you can't sit down and write a todo app with tech you've already "learned", then you haven't actually learned, you've just gone through the motions. Look up courses on "learning how to learn". Being able to ask yourself honestly "did I actually learn this thing??" is the fastest way to improve instead of just going through the motions.
Lastly, avoid AI as much a possible in the early stages of your learning. Don't make it a habit to get stuck then immediately ask AI to explain. The learning happens when you're uncomfortable and have to work through things yourself. You can of course use AI later, but don't use it as a crutch. Before AI, all we had was stack overflow and reddit / forums. More learning happens when you have to search / find these posts yourself (learning how to ask the right questions) and then translate their answers to your own problems. AI does this seemlessly and hides all those learning opportunities from you.
3vo-ai@reddit
Leetcode at sophomore level with "beginner knowledge" is like showing up to a marathon on your first week of running. It is literally designed for people who already have 1-2 years of data structures behind them.
Skip it for now. Build something you actually want to exist. Games, tools, a dumb little script that automates something annoying. Get 2-3 projects on GitHub that you built yourself without a tutorial holding your hand.
That is what hiring managers look at for first internships anyway. Come back to Leetcode junior or senior year when you actually need interview prep.
babaqewsawwwce@reddit
When I first started doing leetcode problems (beginning of my dev journey) I felt what you’re feeling now.
Let’s take the programming out of this for a minute. How did you get better at math, physics, chemistry over the years (assuming you’ve taken these courses). You did practice problems and if you were seeking that 90+%, you’re learning how to attack problems at every angle.
Do that and accept that it will suck until one day it doesn’t. I do regular challenges and I’m very confident in the environment I’m in now - why? Because AI developers might be great at single use applications - the real devs will continue building the grown up tools.
While programming is trending towards architecture and design - I personally think you should be adept in anything you’re working with. Also, if you want to scale down the road - if you’re not building for future scalability you don’t belong in tech - you need to know what you’re building.
MyDarkTwistedReditAc@reddit
Then you didn't learn them properly if you couldn't do that, I think you need to approach more practically then just theoretically.
aneasymistake@reddit
You might enjoy codingame.com. It’s more accessible than Leetcode and potentially more engaging too.
Playful-Sock3547@reddit
LeetCode humbled all of us at some point, trust me. Going from tutorials to problem solving feels like learning to walk again, but the fact that you struggled means you’re finally learning, not failing. Start with tiny projects + easy problems and let AI explain solutions after you try first don’t quit over day 2 of LeetCode.
Fun_Walk_4965@reddit
Leetcode is a separate skill from building software. Almost everyone has to grind it for a few weeks before patterns click. Try one easy problem a day for two weeks before touching mediums, the wall starts to dissolve once you have seen enough variations.
pcgamergirl@reddit
None of us know anything. It is the best kept secret of the profession. Google, stack overflow, they're the ones that know things. We just learn to steal like artists.
josesblima@reddit
I'm baffled, you learned html, css, javascript, java, sql, python, c, c# and c++ and you hit a roadblock after one leetcode problem? There's no way that's normal. Since you don't know DSA I suggest you go learn DFS, because that's probably how you should start doing your learning from now on. I don't know who told you learning programming was memorising syntax of a million different languages. I did 100 leetcode problems before picking my second language. I've only moved from python to c# because my job demanded it and after several months of work experience with python. Just go deep in one thing.
Furion91@reddit
As a complete noob, I know DSA is Data Structure, but what's DFS?
Impressive_Entry_yes@reddit
Depth first search
signalsrobot@reddit
You're trying to sprint before you can walk, focus on building small projects from scratch (like a simple calculator or guessing game) before jumping into leetcode or frameworks like React.
pizza_on_my_mind@reddit
you learned like 8 languages before learning how to actually build stuff. thats probably why your brain feels scrambled rn. pick ONE thing and make dumb little projects with it for a while.
quietcodelife@reddit
also worth separating the 'learn to code' track from the 'get a job' track in your head. the projects you're doing - todo apps, tic tac toe - are actually the right stuff for where you are. leetcode prep is a different mode you shift into closer to when you're job searching. trying to do both simultaneously is why it feels impossible, they need different mental gears.
Astronaut6735@reddit
Have you studied DSA... Data Structures (e.g. linked lists, trees) and Algorithms (e.g. sorting, searching, tree traversal) before? Leetcode is not a learning platform; it's a testing/interview preparation platform. It expects you to know DSA already to solve the problems, and tests you on them the way you might be tested in an interview.
My suggestion is to take a class or read a book about data structures and algorithms, and use leetcode kind of like a lab section of the course or book.
fredrick_fr12@reddit
yeah, i get what you're saying. dsa is crucial, but the way leetcode is set up can be super frustrating, especially for beginners. it's like jumping into the deep end without knowing how to swim. i mean, i've been coding for years and even i sometimes feel like i'm just guessing my way through those problems.
patternrelay@reddit
Honestly this sounds normal, not failure. Tutorials make sense because you’re following a map, but blank projects force you to design the map too. Small messy projects teach way more than grinding Leetcode early on. Most people hit this wall at some point.
opentabs-dev@reddit
one thing nobody said yet - leetcode and "i tried to build a todo app and didnt know where to start" are like completely unrelated skills. leetcode is algorithm puzzles, building a todo app is figuring out how to wire ui state to storage. you can be great at one and useless at the other.
if your goal is game dev / AI, dont stress about leetcode yet. pick ONE language (python is fine for AI, c# if you want unity) and build small ugly things in it until you can do them without tutorials. the leetcode grind makes more sense when youre interview prepping, not when youre still learning to ship anything.
FullMetalAlcoholic66@reddit
NO, hard no. Try your best. Get a solution that sort of works if you can. Then look at other people's better solutions. Try to use AI as little as possible or not at all. AI should only be used to automate the stuff you already understand in education
ilmk9396@reddit
do you play video games? you know how you have to spend a bunch of time learning and practicing things to get good at video games? leetcode is like that.
Ormek_II@reddit
Programming is like that
jerrysdevs@reddit
you can follow roadmaps like neetcode 150, blind 75 etc if you don't know what questions to do. learn you patterns well (e.g. sliding window, two sum, greedy, dp) so you can recognise what the problem's best solution is and build ur intuition. dont rush questions just to hit "i did 75 question", make sure you actually understand them
another thing i’d say is try not to rely too much on solutions too early when you're solving problems. it doesn’t really build intuition, you just end up memorising solutions and then freezing in real interviews. i’ve been using something that gives small, context aware hints while you’re solving (instead of full answers). it’s been pretty nice. lmk if you want it
good luck in your progress remember everyone starts off as not knowing how to do them, you'll learn as you go at it!! hope these tips help
McBoobenstein@reddit
First, don't bother learning the basics of every language. Get a lot of solid practice with one language, the others will come naturally if you find you need them. Yeah, each lang has its quirks, but you need to get through at least data structs and algos before depending into despair. We can all tell you haven't had that class because that's all leetcode really is.
speedygen1@reddit
Do codewars. The problems are rated from 1 to 8 kyu, with 1 being the hardest. start with 8kyu ones with the tag 'Fundamentals'
Image_Form@reddit
Everyone feels that way at first. You’re not alone! DSA can be one of the hardest components of CS to really get the hang of, but when you start adopting the mindset that it teaches you, it becomes easier to understand.
SAF1N@reddit
you've learned that "easy" in leetcode doesn't mean easy
Whatever801@reddit
I think everyone feels this way when they start leetcode. You just gotta keep grinding
paperic@reddit
Yep, learning programming takes a while. You can't skip the grind.
You're right, many threads like this appear here lately and the answer is always the same, continue writing programs.
Writing programs, not reading solved AI problems.
Nobody has learned to solve sudoku by reading a solved sudoku, you have to do the grind, and it will take years.
Reading AI solutions and reading other people's programs is good for inspiration and expanding your horizons, but the main part is writing programs.
More programs, more programs.
And then more programs.
There is no way to skip it.
You don't need anything polished, let alone anything useful.
Write a program that prints circles in ascii art, or calculators with unlimited digits, or tic tac toe, then tic tac toe solvers, or a solitaire game and then a solitaire bot. Anything.
Do more leetcode if that's what you struggle with, even just the easy ones if nothing else. Leetcode is by no means the end-all, but it will train your algorithmic thinking.
Making a website is quite easy, it just needs to sit down for a weekend or two and go through the tutorials and documentations. But react is a different beast, it does million things you won't need, I wouldn't dig into it unless you find it interesting.
EntrepreneurHuge5008@reddit
I mean, not sure what you were expecting if you already knew this coming in.
Look, LeetCode isn't the be-all, end-all. It's helpful for interview prep, and if you want to get good at Leetcode, then you just have to keep doing Leetcode problems. You can either wait to do DSA at school (part of every CS program), or you can Google "DSA Free course," and that'll get you started.
This is poor use of AI. struggle for 20-45 min, and if you feel like you're "almost there" on your own, then just finish the problem. If you're still lost, then just have AI assume the role of a technical interviewer and "guide" or "nudge" you in the right direction.
brazen768@reddit
Neetcode 150 to learn leetcode patterns. For projects, figure out what discipline you're interested in and start building.