We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Data Structures
- Stacks
- Poisonous Plants
- Discussions
Poisonous Plants
Poisonous Plants
Sort by
recency
|
291 Discussions
|
Please Login in order to post a comment
wow hard question. couldnt figure out how to do it until i learned the previous greater element algo from copilot, very straightforward modification of that algo, ask copilot for it
O(n)
My Solution in Python using Dynamic Programing
Passing all test cases but exceeding time limit (~5 sec runtime) in a few. Could someone suggest an alternative approach or improvements to my current solution (C#)?
My golang solution.... It doesn't pass all the test cases. Can anyone spot the logic error?
Thanks in advance
Kotlin