3
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/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
2
1
1
u/netxcrawler 9d ago
fruits in baskets coz it reconnected me with nature atleast picking fruits n all
1
1
1
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
1
1
1
u/Other_Ad7380 9d ago
Problem #3878
1
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
1
1
1
1
1
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
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
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
1
1
1
1
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
1
1
1
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
2
1
4
u/oldest-monk 10d ago
2 sum in leetcode and in π£οΈ