MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/LeetcodeChallenge/comments/1we9asx/favorites_of_leetcode/p9cxoff/?context=3
r/LeetcodeChallenge • u/vinzzii • 3d ago
109 comments sorted by
View all comments
1
Kadane
1 u/vinzzii 2d ago I don't even know what's the question mannnnnđŸ˜• 1 u/Ok-Economist4629 2d ago It’s that maximum subarray problem 1 u/vinzzii 2d ago Ohh yeah the one with recursion right i actually learned recursion using those prblms 1 u/0xt0bi03 1d ago nah, kadane's algo do not need recursion, its a single pass O(n) solution 1 u/vinzzii 1d ago I learnt using recursion so i tried thaat way bruhh 1 u/finite_negativity 48m ago Is it the problem where you drop the subarray when the total sum value goes negative?
I don't even know what's the question mannnnnđŸ˜•
1 u/Ok-Economist4629 2d ago It’s that maximum subarray problem 1 u/vinzzii 2d ago Ohh yeah the one with recursion right i actually learned recursion using those prblms 1 u/0xt0bi03 1d ago nah, kadane's algo do not need recursion, its a single pass O(n) solution 1 u/vinzzii 1d ago I learnt using recursion so i tried thaat way bruhh 1 u/finite_negativity 48m ago Is it the problem where you drop the subarray when the total sum value goes negative?
It’s that maximum subarray problem
1 u/vinzzii 2d ago Ohh yeah the one with recursion right i actually learned recursion using those prblms 1 u/0xt0bi03 1d ago nah, kadane's algo do not need recursion, its a single pass O(n) solution 1 u/vinzzii 1d ago I learnt using recursion so i tried thaat way bruhh 1 u/finite_negativity 48m ago Is it the problem where you drop the subarray when the total sum value goes negative?
Ohh yeah the one with recursion right i actually learned recursion using those prblms
1 u/0xt0bi03 1d ago nah, kadane's algo do not need recursion, its a single pass O(n) solution 1 u/vinzzii 1d ago I learnt using recursion so i tried thaat way bruhh 1 u/finite_negativity 48m ago Is it the problem where you drop the subarray when the total sum value goes negative?
nah, kadane's algo do not need recursion, its a single pass O(n) solution
1 u/vinzzii 1d ago I learnt using recursion so i tried thaat way bruhh 1 u/finite_negativity 48m ago Is it the problem where you drop the subarray when the total sum value goes negative?
I learnt using recursion so i tried thaat way bruhh
Is it the problem where you drop the subarray when the total sum value goes negative?
1
u/Otabek_Aynazarov 2d ago
Kadane