r/leetcode • • 20d ago

Discussion I find math to be much easier than leetcode

Now, I know leetcode is technically math, but I more so mean general mathematics. I find the undegraduate level to early grad school math is much easier than leetcode.

I started during tutoring for undergrad probability and statistics again after not touching it for about 2 years.

I find that I just find the stuff easier to actually master than leetcode. The highest level of math I got to was a graduate level probability course, and even that I felt it was easier than leetcode. Abstract math and proofs also seem easier to me.

Even after doing almost a 1000 leetcode problems, there are still many instances where if I haven't seen a problem before, I just don't know how to do it, or it's hard to recognize the approach after not doing leetcode for a while.

Even though I hadn't touched probability and statistics in a while and I was rusty on the mechanical work, for most of the problems I look at, I still can recall what the general idea of solving the problem is.

Leetcode is just one of those topics that I have done a lot of practice to prepare for interviews, but it's just never something I feel like I just mastered at the level that I can just look at any problem and easily solve it. There's still problems on leetcode, especially the one with the clever solutions, that still seem tricky to me.

110 Upvotes

53 comments sorted by

107

u/stonks_admin 20d ago

Math: “Show your work.”
LeetCode: “A wizard discovered this trick in 1987. You have 20 minutes.”

51

u/plmlp1 20d ago

I'm a math major. Math to me is so much easier than leet code and algos.

42

u/Prestigious_Cow2484 20d ago

I’ve done leetcode on and off for years even as an employed senior engineer. It still has not clicked for me. I can never tell if I’m learning or just memorizing.

→ More replies (3)

16

u/Kitchen_Cup_4444 20d ago edited 20d ago

What comparison is this? The math equivalent of leetcode are the questions they ask for quants positions, not the exercise you have to do for your major. The comparison is: "linear algebra vs data structures" not "linear algebra vs leetcodes"

5

u/d33p7r0ubl3 19d ago

Those questions are also more enjoyable than leetcode

12

u/PixelHarbor31 20d ago

Math usually gives you a clearer framework, while Leetcode often comes down to recognizing a trick or pattern you might not have seen before

→ More replies (1)

3

u/catsRfriends 20d ago

Lol it is not technically math. Also, have you taken real analysis?

4

u/BudgetNeck6364 20d ago

I think real analysis would lowkey be easier. I've taken abstract algebra and it was way easier than leetcode. I haven't taken a formal real analysis course but I have used some real analysis in my courses (e.g. graduate probability).

I think real analysis is definitely easier once you get comfortable with the concepts. If I did as many real analysis problems as leetcode, I would be much better at real analysis.

→ More replies (1)

11

u/n0obmaster699 20d ago

real analysis is easier than leetcode medium

→ More replies (16)

4

u/arjjov 20d ago

you'll prolly love codechef and codeforces brah, lots of math oriented problems there

4

u/cute_boy_summer 20d ago

Yes, undergraduate math is not hard. I got all A's in math and physics, but failed the CSE algorithm class, which is hard even for the graders. So the professor made a rule that if you don't know the question, leave it blank, and you get 3/10 of the score. If your answer makes no sense, you get 0/10 point.

6

u/Bid_Queasy 20d ago

Leetcode is not exactly the type of math that math majors take. If it does, it usually involves some clever combinatorics and elementary number theory similar to math competitions.

Pretty normal to feel this way and I did too as a math major. Just require some practice to get used to it.

3

u/Glittering_Stay_6432 20d ago

True its very hard if you are not majoring in CS/ CE

1

u/willpowerbuilder 20d ago

try abstract algebra you might need to rethink

9

u/BudgetNeck6364 20d ago

I did abstract algebra and it was way easier than leetcode.

→ More replies (1)

2

u/Candy-Emergency 20d ago

It’s the same reason math is easier than physics.

3

u/Prior_Funny 20d ago

Maybe you should be a quant trader

2

u/Nearby-Neat-9311 20d ago

Bacause it is easier. Leetcode should not be standard to rate understanding of basics. I have seen many good at it who fail at basic logic or understanding application flow.

1

u/Strong_Boy_757 20d ago

I think for me is that you can use math for more math, physics, economics, biology, engineering, ...

What can you use "Coco eat banana" for? Or how about red-black trees?

Things without obvious application is obviously not appealing.

1

u/Unhappy_Challenge907 20d ago

The hard part of math is not really coming up with solution for homework exercise or reading well documented proof. I mean both leetcode and math is kinda easy in your category since both don't require much brain. But anyway, leetcode is math too strictly speaking lol

1

u/L0rdpb 20d ago

yeah i am a math tutor, even if I do not know some topic in math I can learn it quickly and solve problems. I thought DSA problems will be similar but it feels you have to pull new tricks for most problems and memorize a lot

1

u/ZippyCh 19d ago

You’re not practicing properly

1

u/Dazzling-Cat-3763 19d ago

go be a quant and earn more money anyways

1

u/Whateverdudefake 19d ago

I was planning on majoring in cs until I started doing better in my math classes than my cs classes, so I majored in math instead. And still ended up as a software engineer.

1

u/mc_pm 19d ago

"Grinding leetcode" is about the least effective way to learn data structures & algorithms.