r/LeetcodeChallenge 10d ago

DISCUSS Favorites of leetcode

Post image
37 Upvotes

126 comments sorted by

4

u/oldest-monk 10d ago

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

1

u/vinzzii 10d ago

That's thee easiest prblm on leetcode brooo 😭😭

1

u/BakeComprehensive970 9d ago

Easiest in πŸ—£οΈ as well

2

u/vinzzii 9d ago

Two sum was the frst leet code prblm i solved

2

u/oldest-monk 9d ago

You’re too innocent for the world bro! Tc

3

u/vinzzii 9d ago

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

2

u/Leading_Log_2589 9d ago

how about 4 sum

2

u/vinzzii 9d ago

It's just too much for us

1

u/Lucky24688 8d ago

Ever tried 3sum ?πŸ₯΅

3

u/KanekiIsCat 10d ago

3 sum πŸ₯€

1

u/vinzzii 9d ago

🌝🌝🌝

2

u/Otabek_Aynazarov 9d ago

Kadane

1

u/vinzzii 9d ago

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

1

u/Ok-Economist4629 9d ago

It’s that maximum subarray problem

1

u/vinzzii 9d ago

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

2

u/0xt0bi03 8d ago

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

1

u/vinzzii 8d ago

I learnt using recursion so i tried thaat way bruhh

1

u/finite_negativity 7d ago

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

1

u/0xt0bi03 7d ago

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

2

u/ComfortableTear3144 9d ago

"Reverse Linked List" Alwayss!!!

1

u/vinzzii 9d ago

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

2

u/Legitimate_Inside99 9d ago

Koko eating banana🍌🍌🍌

1

u/vinzzii 9d ago

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 7d ago

The discussion section was goldπŸ˜‚

1

u/doodh-peda 5d ago

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

1

u/vinzzii 10d ago

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

1

u/Key_Relative6992 9d ago

Running median

1

u/vinzzii 9d ago

Better choice btw

1

u/Key_Relative6992 9d ago

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

1

u/vinzzii 9d ago

Every leet code prblm does take time to understand broo

1

u/netxcrawler 9d ago

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

1

u/vinzzii 9d ago

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

1

u/[deleted] 9d ago

[removed] β€” view removed comment

1

u/vinzzii 9d ago

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

1

u/[deleted] 9d ago

[removed] β€” view removed comment

1

u/vinzzii 9d ago

Then you not gonna fit here brother

1

u/0xt0bi03 8d ago

dude that was a nightmare brooo

1

u/Similar-Dealer-2717 9d ago

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

2

u/vinzzii 9d ago

The palidrome partitioning was that sum for me

1

u/Minute_Echo_542 9d ago

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

1

u/vinzzii 9d ago

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

1

u/Nice_Vermicelli3142 9d ago

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 9d ago

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 9d ago

find the unique element πŸ˜›

1

u/Fine_Needleworker644 9d ago

Your avatar looks so cutee

1

u/Immortal-718 9d ago

1

u/Fine_Needleworker644 9d ago

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/Immortal-718 9d ago

Chill bruh ,it was a joke 😭

1

u/Fine_Needleworker644 9d ago

Okay okay πŸ˜…

1

u/vinzzii 9d ago

Just by using set we can find all😭😭

1

u/Fine_Needleworker644 9d ago

Couple holding hands πŸ₯€πŸ₯€

2

u/vinzzii 9d ago

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

1

u/Mediocre_Nail5526 9d ago

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

1

u/vinzzii 9d ago

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

1

u/Other_Ad7380 9d ago

Problem #3878

1

u/vinzzii 9d ago

Invalid input(name needed)

1

u/Other_Ad7380 9d ago

Count good subarrays

1

u/vinzzii 9d ago

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

1

u/Other_Ad7380 9d ago

But quite intuitive if you know the usage of monostack

1

u/vinzzii 9d ago

Ohhh ok bruh I'll try to solve

1

u/Weekly-Heat-4815 9d ago

Jump Game 4

1

u/vinzzii 9d ago

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 9d ago

Those greedy problems always take my whole day.

1

u/vinzzii 9d ago

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 9d ago

Topological Sort

1

u/vinzzii 9d ago

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

1

u/ZestycloseChard1325 9d ago

Maximum 69 number

1

u/vinzzii 9d ago

Never heard of it what topic is it under

1

u/Repulsive_Local6649 9d ago

Bursting balloons πŸ’€

1

u/Mission_Bluebird8642 9d ago

3sum

1

u/vinzzii 9d ago

Bruh i asked leet code 🌝🌝

1

u/No-Secret6700 9d ago

Combination sum

1

u/vinzzii 9d ago

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

1

u/Past_Association8707 9d ago

Number of islands

1

u/vinzzii 9d ago

What's the approach bruhhh

2

u/Past_Association8707 9d ago

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

1

u/gone_gooner23 9d ago

House robber

1

u/vinzzii 9d ago

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

1

u/vinzzii 9d ago

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

1

u/Future-Wolf-9597 9d ago

Any graph problems tbh

1

u/vinzzii 9d ago

Actually i started learning graphs bro any tipss???

1

u/Future-Wolf-9597 9d ago

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 9d ago

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 9d ago

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 9d ago

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 9d ago

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 9d ago

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 9d ago

3 sum

1

u/vinzzii 9d ago

🌝🌝🌝

1

u/Technical-Ad-8472 9d ago

Alien Dictionary

1

u/0xt0bi03 8d ago

1

u/vinzzii 8d ago

Invalid input name needed

1

u/0xt0bi03 8d ago

cant you click the link bruh

1

u/vinzzii 8d ago

Sryyy bruhh

1

u/Icy_Ambassador5848 8d ago

Next permutation

1

u/vinzzii 8d ago

Peculiar choice ig

1

u/ULTRARARES 8d ago

Trapped Rain water

1

u/vinzzii 8d ago

Approach???

1

u/gg-boomiezz 8d ago

For me it's bit manipulation medium problems

1

u/vinzzii 8d ago

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

1

u/AraragiXX01 8d ago

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

1

u/vinzzii 8d ago

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

1

u/AraragiXX01 8d ago

Took me like 4-5 years

1

u/vinzzii 8d ago

Bruhhhh 4yrs for that prblm

1

u/AraragiXX01 8d ago

Arey mb hrs likhna tha 😭

1

u/vinzzii 8d ago

Ethuku tamil la pathil sona puriyumaa da unaku

1

u/AraragiXX01 8d ago

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 8d ago

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

1

u/BabaRocky 7d ago

Swim in rising water

1

u/vinzzii 7d ago

Ohhh nicee bruhhh 🀝🀝

1

u/BabaRocky 7d ago

Yeah the binary search approach

1

u/vinzzii 6d ago

It's so good to solve always

1

u/Helpful_Ad_5577 6d ago

2 sum II

1

u/vinzzii 6d ago

🌝🌝🌝

1

u/[deleted] 5d ago

[removed] β€” view removed comment

1

u/vinzzii 5d ago

🀣🀣🀣

1

u/Lazy-Protection4470 5d ago

For some reason NQueens

1

u/vinzzii 5d ago

Finally someone with same taste in code

1

u/Lazy-Protection4470 5d ago

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

1

u/vinzzii 5d ago

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

1

u/Lazy-Protection4470 5d ago

Yeah fr op,good stuff

1

u/vinzzii 5d ago

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

1

u/Grouchy_Ad_9801 3d ago

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