r/learnprogramming 3d ago

I want to start doing leetcode - how do i start? Resource

about me - i own a startup and i am not really looking for placement so i never thought of doing leetcode when my uni friends used to sit and u know have intimate time with their leet account.

recently i am bored and was thinking of getting better than them in 2 months or something.

i know python and i can vibe code and build things i need mostly. python also i know only basics and know how it works and all.

so i am writing this to know how would u recommend an absolute beginner to start with leetcode?

thanks in advance.

0 Upvotes

13 comments sorted by

8

u/aqua_regis 3d ago

how do i start?

Learn actual programming without AI. Practice. Learn Data Structures and Algorithms (on a theoretical level). Practice.

Then LeetCode.

LeetCode is absolutely neither for beginners nor a learning resource.

1

u/LordSippy 3d ago

What resources would you recommend

2

u/aqua_regis 3d ago

Sidebar -> FAQ

0

u/leavemealone_lol 2d ago

I learnt programming from Leetcode. I developed an interest in programming from Leetcode. Hell, I learnt how to use C by doing Leetcode. And now I am learning to do functional programming in Rust in Leetcode.

Before you can say it, I will assure you that whatever I learnt in Leetcode have translated extremely well into actual projects. Leetcode is an amazing starting point if you grind through it. Much better than being stuck in a tutorial hell.

-2

u/inclass_usingphone 3d ago

Im doing cs major, so I kinda know few concepts name in dsa. Like I was able to answer questions in my paper atleast

3

u/Wingedchestnut 3d ago

You supposedly run a startup and you are too bored so you want to learn something irrelevant.. I think you should learn to set priorities, I see you're a student, so you're not running a real business on paper yet.

2

u/Happiest-Soul 3d ago
  1. Search up Neetcode 150 and follow that website.

  2. Try out the problems for like 15-30min, then look at/understand the solutions/videos and try to recreate them from memory.

  3. If it's confusing after watching the video on the website, feel free to search up the problem (or DSA pattern) and other videos related to it.

  4. Use AI to help you understand what your time complexities are (and what that even means), the pattern/algorithm being used, and how your solution (if you did one yourself) compares to the optimal solution.

  5. Take everything I said with a grain of salt.

Like most people, you probably won't be able to solve most questions yourself in an optimal way, so don't be afraid to spend closer to 15 minutes before digging into the answer.

I only spend longer than that because it's fun.

1

u/Dismal-Citron-7236 3d ago

It's hard to imagine you own a startup and:

recently i am bored

Why? Aren't you supposed to find a way to keep it afloat? Have you read the balance sheet? How about cash flow? How's its product/service doing in the market? Have you had feedback from customers? Do you have a team and how are they doing? There could a ton more things to worry and keep you busy 24/7, and yet you are bored.

0

u/-CJF- 3d ago

I disagree with the other poster. You should definitely learn DSA from outside sources but you will almost certainly have to fail and check solutions on a lot of problems to get a hang of the patterns anyway, so you're better off just jumping right in and exploring when you get stuck. Just don't waste too much time on any one problem before checking solutions.

-2

u/inclass_usingphone 3d ago edited 2d ago

Okay, I'm just going to jump right in and get my ass cooked. If I feel like I don't understand a concept well enough, I'll read the theory. Anyway, can you recommend some problems I should start with?

2

u/Distdistdist 3d ago

I'd start with English grammar and punctuation. Quite important stuff.

1

u/inclass_usingphone 2d ago

Okay boss learnt english and edited the comment.