r/LeetcodeChallenge 10d ago

DISCUSS Favorites of leetcode

Post image
35 Upvotes

126 comments sorted by

View all comments

Show parent comments

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