- Difficulty: Hard
- Given an array, find all its elements that can become a leader, after increasing by 1 all of the numbers in some segment of a given length.
- https://app.codility.com/programmers/challenges/molybdenum2019/
- https://app.codility.com/programmers/task/leader_slice_inc/
- Result
Good
: Correctness 100%, Performance 100%.OK
: Correctness 100%, Performance <100%.Fail
: Correctness <100%, Performance <100%.
- File naming convention
- Code
A
:Molybdenum2019A.java
- etc
- Code
File | Description | Complexity | Result | Report |
---|---|---|---|---|
A |
O(M) |
Good |
V2T89N-V8F | |
B |
A , with checking max 2 leaders. |
O(M) |
Good |
CRE25U-M84 |