Codility Challenge: Matrix 2021 (Medium)
Good
: Correctness 100%, Performance 100%.OK
: Correctness 100%, Performance <100%.Fail
: Correctness <100%, Performance <100%.A
: Matrix2021A.java
B
: Matrix2021B.java
Code | Complexity | Description | Result | Report |
---|---|---|---|---|
A1 |
O(N ** 2) or O(N ** 2 * log(N)) |
Method: Simple N*K search | OK (16%) | WVADP8 |
Code | Complexity | Description | Result | Report |
---|---|---|---|---|
B1 |
O(N * log(N)) or O(N) |
Tracking Stack of Height and Count (using arrays int[] ) |
Good | 6FUHGY-7Y9 |
B2 |
O(N * log(N)) or O(N) |
Tracking Stack of Height and Count (using Stack<Class> ) |
Good | FEAYQK-AQ2 |
Code | Complexity | Description | Result | Report |
---|---|---|---|---|
C1 |
O(N ** 2) or O(N ** 2 * log(N)) |
Solution A, Complexity: O(N^2) |
OK (16%) | D93D98-5YK |
C2 |
O(N * log(N)) or O(N) |
Solution B, Complexity: O(N log N) |
Good | XZ5NV4-RCK |