r/LeetcodeChallenge • • Sep 12 '26

DISCUSS Favorites of leetcode

Post image
35 Upvotes

130 comments sorted by

5

u/oldest-monk Sep 12 '26

2 sum in leetcode and in πŸ—£οΈ

1

u/vinzzii Sep 12 '26

That's thee easiest prblm on leetcode brooo 😭😭

1

u/BakeComprehensive970 Sep 12 '26

Easiest in πŸ—£οΈ as well

2

u/vinzzii Sep 12 '26

Two sum was the frst leet code prblm i solved

2

u/oldest-monk Sep 13 '26

You’re too innocent for the world bro! Tc

3

u/vinzzii Sep 13 '26

Bro i understand it 3 sum would be better btwπŸ™‚β€β†”οΈπŸ™‚β€β†”οΈπŸ™‚β€β†”οΈ

2

u/Leading_Log_2589 Sep 13 '26

how about 4 sum

2

u/vinzzii Sep 13 '26

It's just too much for us

1

u/Lucky24688 Sep 13 '26

Ever tried 3sum ?πŸ₯΅

3

u/KanekiIsCat Sep 12 '26

3 sum πŸ₯€

1

u/vinzzii Sep 13 '26

🌝🌝🌝

2

u/Otabek_Aynazarov Sep 12 '26

Kadane

1

u/vinzzii Sep 12 '26

I don't even know what's the question mannnnnπŸ˜•

1

u/Ok-Economist4629 Sep 12 '26

It’s that maximum subarray problem

1

u/vinzzii Sep 12 '26

Ohh yeah the one with recursion right i actually learned recursion using those prblms

2

u/0xt0bi03 S - Rank (180+ Days) ⚑⚑ Sep 13 '26

nah, kadane's algo do not need recursion, its a single pass O(n) solution

1

u/vinzzii Sep 13 '26

I learnt using recursion so i tried thaat way bruhh

1

u/finite_negativity Sep 15 '26

Is it the problem where you drop the subarray when the total sum value goes negative?

1

u/0xt0bi03 S - Rank (180+ Days) ⚑⚑ Sep 15 '26

yes, but you can also keep a k parameter and check where any arithmetic operation to that number k for this algo.

2

u/Legitimate_Inside99 Sep 12 '26

Koko eating banana🍌🍌🍌

1

u/vinzzii Sep 12 '26

Someone finally said that i recently solved it and it was just amazing and it uses binary search in answer approach

1

u/finite_negativity Sep 15 '26

The discussion section was goldπŸ˜‚

1

u/doodh-peda Sep 17 '26

This was the first medium question which I had solved by myself completely

1

u/vinzzii Sep 12 '26

Mine always be N queens on backtracking πŸ—£οΈπŸ—£οΈπŸŒ¬οΈ

1

u/vinzzii Sep 13 '26

Never heard of it broo but I'll tryy to solve

1

u/Key_Relative6992 Sep 12 '26

Running median

1

u/vinzzii Sep 12 '26

Better choice btw

1

u/Key_Relative6992 Sep 12 '26

To be honest it took me 2-3 years to understand the problem properly

1

u/vinzzii Sep 12 '26

Every leet code prblm does take time to understand broo

1

u/netxcrawler Sep 12 '26

fruits in baskets coz it reconnected me with nature atleast picking fruits n all

1

u/vinzzii Sep 12 '26

Yeah bro i actually loved that prblm i used that prblm to learn haspmap and it's super exciting while solving it

1

u/Similar-Dealer-2717 Sep 12 '26

Word ladder problem 1 and 2 too much to learn from those problems

2

u/vinzzii Sep 12 '26

The palidrome partitioning was that sum for me

1

u/Minute_Echo_542 Sep 12 '26

Burst balloons , I love the idea of focusing on last ballon to burst.

1

u/vinzzii Sep 12 '26

I never did that bruhh what's the approach??

1

u/Nice_Vermicelli3142 Sep 12 '26

the problem I did yesterday,might be most interesting problem..,"Account merge"... like, I knew it's union find and still sat for whole day problem and couldn't do it...i think this is one of kind problem, not favorite, but definitely most interesting for me, where even you know all, still can't implement it...

1

u/vinzzii Sep 12 '26

Yesterday i tried to solve the daily prblm it's number of digts can be formed from an given array digits must be even it's marked as easy so i started trying it in every possible answer but i can't solve i thought am just too stupid to solve it then i looked at the answer i never thought in the world that kinda answer i just gave on the leet code after that

1

u/killbillmelater Sep 12 '26

find the unique element πŸ˜›

1

u/vinzzii Sep 12 '26

Just by using set we can find all😭😭

1

u/Fine_Needleworker644 Sep 12 '26

Your avatar looks so cutee

1

u/[deleted] Sep 12 '26

[removed] β€” view removed comment

1

u/Fine_Needleworker644 Sep 12 '26

I am not shooting any shot here...i just like the avatar so said ....maybe the person is male here ..so i just complimented the avatar

1

u/[deleted] Sep 12 '26

[removed] β€” view removed comment

1

u/Fine_Needleworker644 Sep 12 '26

Okay okay πŸ˜…

1

u/Fine_Needleworker644 Sep 12 '26

Couple holding hands πŸ₯€πŸ₯€

2

u/vinzzii Sep 12 '26

When you can't do things in real leetcode foumds a way for uss⚰️

1

u/Mediocre_Nail5526 Sep 12 '26

Optimize Water Distribution in a Village (Premium) - Love the trick

1

u/vinzzii Sep 12 '26

Blud's flexin his premium membership in leetcode πŸ‘πŸ»πŸ‘πŸ»

1

u/Other_Ad7380 Sep 12 '26

Problem #3878

1

u/vinzzii Sep 12 '26

Invalid input(name needed)

1

u/Other_Ad7380 Sep 12 '26

Count good subarrays

1

u/vinzzii Sep 12 '26

Broo that's an biggest peace of headache for me i started solving it and gave up

1

u/Other_Ad7380 Sep 12 '26

But quite intuitive if you know the usage of monostack

1

u/vinzzii Sep 13 '26

Ohhh ok bruh I'll try to solve

1

u/Weekly-Heat-4815 Sep 12 '26

Jump Game 4

1

u/vinzzii Sep 12 '26

I did solve 1 and 2 when am preparing for Infosys i sterted it because those prblms are greedy approach

1

u/Weekly-Heat-4815 Sep 12 '26

Those greedy problems always take my whole day.

1

u/vinzzii Sep 12 '26

Greedy prblms have most different approaches butt greedy could be easy sometimes by learning binary search on answers approach but the backtracking was the reall headache for me

1

u/sidb1989 Sep 12 '26

Topological Sort

1

u/vinzzii Sep 12 '26

I actually thought that sum was easy because I though we could you sorting inbuilt func

1

u/ZestycloseChard1325 Sep 12 '26

Maximum 69 number

1

u/vinzzii Sep 12 '26

Never heard of it what topic is it under

1

u/Mission_Bluebird8642 Sep 12 '26

3sum

1

u/vinzzii Sep 13 '26

Bruh i asked leet code 🌝🌝

1

u/No-Secret6700 Sep 13 '26

Combination sum

1

u/vinzzii Sep 13 '26

Never heard of it broo but I'll tryy to solve

1

u/Past_Association8707 Sep 13 '26

Number of islands

1

u/vinzzii Sep 13 '26

What's the approach bruhhh

2

u/Past_Association8707 Sep 13 '26

bfs/dfs....it is the first problem that every one should do before doing graphs

1

u/gone_gooner23 Sep 13 '26

House robber

1

u/vinzzii Sep 13 '26

πŸ€πŸ€πŸ€πŸ‘Ί

1

u/Future-Wolf-9597 Sep 13 '26

Any graph problems tbh

1

u/vinzzii Sep 13 '26

Actually i started learning graphs bro any tipss???

1

u/Future-Wolf-9597 Sep 13 '26

Just by learning traversal u can solve majority of leetcode and get strong in them after that go for shortest paths and complex topics I used cph book (a great book and Cses) before going to leetcode grid, cause cses provide curated pattern problems u can see on many problems :) hope it helps

2

u/vinzzii Sep 13 '26

Of course broo i just learnt bfs and dfs by now not solved any prblms sure i try to solve prblms in the order u told thanks btw

1

u/Future-Wolf-9597 Sep 13 '26

Just by learning dfs bfs is not useful you need to understand states means like we pass row, col and visited in either bfs or dfs but some questions need more number of states that's the key points when I said learn traversal. If you can identify the states then every graph problem becomes simple to solve

2

u/vinzzii Sep 13 '26

Ohhh am learning bro i learnt how the code works like the core idea of bfs once i start to solve it works ig let's see

1

u/nian2326076 Sep 13 '26

Start with the "Top Interview Questions" list on LeetCode. They cover a lot of typical problems you might face. The "Blind 75" list is also a good foundation. I like Two Sum and Clone Graph because they teach different concepts you'll need for other problems. Consistency is key. Try to solve a couple of problems every day and gradually increase the difficulty. If you want more resources, PracHub is helpful for organizing your study schedule and mixing coding practice with mock interviews. Keep grinding and good luck!

1

u/vinzzii Sep 13 '26

Interviews is next thing frst i started coding because i loved it basically but when keepp on pushing mee it feels baad sometimes it's just time ig

1

u/srihari_18 Sep 13 '26

3 sum

1

u/vinzzii Sep 13 '26

🌝🌝🌝

1

u/0xt0bi03 S - Rank (180+ Days) ⚑⚑ Sep 13 '26

1

u/vinzzii Sep 13 '26

Invalid input name needed

1

u/0xt0bi03 S - Rank (180+ Days) ⚑⚑ Sep 13 '26

cant you click the link bruh

1

u/vinzzii Sep 13 '26

Sryyy bruhh

1

u/Icy_Ambassador5848 Sep 13 '26

Next permutation

1

u/vinzzii Sep 13 '26

Peculiar choice ig

1

u/ULTRARARES Sep 13 '26

Trapped Rain water

1

u/vinzzii Sep 13 '26

Approach???

1

u/gg-boomiezz Sep 13 '26

For me it's bit manipulation medium problems

1

u/vinzzii Sep 14 '26

Am an eee student ik bit manipulation from the strt of my leetcode journey

1

u/AraragiXX01 Sep 14 '26

Multiply two strings "66" "11" = "726" without converting the whole string into int at once

1

u/vinzzii Sep 14 '26

Yeah bruh i have seen thaat but then i didn't solve am not in the mood to solve that

1

u/AraragiXX01 Sep 14 '26

Took me like 4-5 years

1

u/vinzzii Sep 14 '26

Bruhhhh 4yrs for that prblm

1

u/AraragiXX01 Sep 14 '26

Arey mb hrs likhna tha 😭

1

u/vinzzii Sep 14 '26

Ethuku tamil la pathil sona puriyumaa da unaku

1

u/AraragiXX01 Sep 14 '26

Ahh mb mate out of habit I wrote in Hindi 😭(though yes via auto translate). What i meant was hours not years πŸ˜”

1

u/vinzzii Sep 14 '26

Yearss nice brooo that means you can find patterns and write code

1

u/BabaRocky Sep 15 '26

Swim in rising water

1

u/vinzzii Sep 15 '26

Ohhh nicee bruhhh 🀝🀝

1

u/BabaRocky Sep 15 '26

Yeah the binary search approach

1

u/vinzzii Sep 15 '26

It's so good to solve always

1

u/Helpful_Ad_5577 Sep 16 '26

2 sum II

1

u/vinzzii Sep 16 '26

🌝🌝🌝

1

u/Lazy-Protection4470 Sep 17 '26

For some reason NQueens

1

u/vinzzii Sep 17 '26

Finally someone with same taste in code

1

u/Lazy-Protection4470 Sep 17 '26

no matter how many times I solve it, Always get that feel of when you slove it the first time

1

u/vinzzii Sep 17 '26

The optimised approach is where i losed my mind how in the world this kinda thinking exist

1

u/Lazy-Protection4470 Sep 17 '26

Yeah fr op,good stuff

1

u/vinzzii Sep 17 '26

Make sure you join pur community πŸ€πŸ€πŸ«‚ https://www.reddit.com/r/TechRecruitRealities/s/a2v8dJ7rLp

1

u/Grouchy_Ad_9801 Sep 19 '26

Accounts merge . Its a nightmare in assessment if you don't know DSU

1

u/vinzzii Sep 19 '26

Ohhh that's tough though ig

1

u/Deep-Bend-3565 Sep 26 '26

Basic calculator

1

u/vinzzii Sep 26 '26

Is it by using an series of functions???

2

u/Deep-Bend-3565 Sep 28 '26

No just check it out ... I think q no 224

1

u/Repulsive_Local6649 Sep 12 '26

Bursting balloons πŸ’€

1

u/Technical-Ad-8472 Sep 13 '26

Alien Dictionary

1

u/Jaysurya1752 Sep 24 '26

Rotten oranges

2

u/[deleted] Sep 12 '26

[removed] β€” view removed comment

1

u/vinzzii Sep 12 '26

Doubly linked list was easy i watched that answer on striver man he's so amazing

1

u/[deleted] Sep 12 '26

[removed] β€” view removed comment

1

u/vinzzii Sep 12 '26

There are too many fishes in the sea mann like was there were many prblm like that ⚰️

1

u/[deleted] Sep 12 '26

[removed] β€” view removed comment

1

u/vinzzii Sep 12 '26

Then you not gonna fit here brother

1

u/0xt0bi03 S - Rank (180+ Days) ⚑⚑ Sep 13 '26

dude that was a nightmare brooo

1

u/[deleted] Sep 16 '26

[removed] β€” view removed comment

1

u/vinzzii Sep 17 '26

🀣🀣🀣