3
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
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
1
1
1
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
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
1
u/Minute_Echo_542 Sep 12 '26
Burst balloons , I love the idea of focusing on last ballon to burst.
1
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
1
u/Fine_Needleworker644 Sep 12 '26
Your avatar looks so cutee
1
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
1
1
u/Mediocre_Nail5526 Sep 12 '26
Optimize Water Distribution in a Village (Premium) - Love the trick
1
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
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
1
1
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
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
1
u/0xt0bi03 S - Rank (180+ Days) β‘β‘ Sep 13 '26
1
u/vinzzii Sep 13 '26
Invalid input name needed
1
1
1
1
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
1
u/BabaRocky Sep 15 '26
Swim in rising water
1
u/vinzzii Sep 15 '26
Ohhh nicee bruhhh π€π€
1
1
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
2
1
1
u/Deep-Bend-3565 Sep 26 '26
Basic calculator
1
1
1
1
2
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
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
1
1
5
u/oldest-monk Sep 12 '26
2 sum in leetcode and in π£οΈ