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
|
295 Discussions
|
Please Login in order to post a comment
I get the correct answers except for the 100,000 inputs. It keeps timing out.
Programming in Python 3...
Anybody got it?
Passes all samples , but fails everything else. Any tips fellas ?
Basically it boils down to the idea that people who could have bribed me, would not be more than 2 position before my initial position to my current position.
C# submission
Here is my solution in Java. I initially solved it by replacing the elements in list with its correct position and counting the bribes while doing that. That yielded result but few of the test cases failed due to performance. I tried a little in local IDE and took help online to arrive at this solution}