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.
- New Year Chaos
- Discussions
New Year Chaos
New Year Chaos
Sort by
recency
|
288 Discussions
|
Please Login in order to post a comment
Python solution:
This approach is mostly about the fact that we only need to count all people in front of us (who could bribe the current person and not more than two bigger than us) def minimumBribes(q): bribes = 0
This works ( in py)
This doesn't fully work
My answer with Typescript, idea & explain includes.