- Difficulty: Medium
- There are N glasses of different capacities, each of them containing a different amount of a unique kind of juice. Calculate the maximum number of kinds of juice that can be mixed in a single glass.
- https://app.codility.com/programmers/challenges/olx_group2020/
- https://app.codility.com/programmers/task/multivitamin/
- Result
Good
: Correctness 100%, Performance 100%.OK
: Correctness 100%, Performance <100%.
- File naming convention
- Code
A
: FileTheOLXGroup2020A.java
- Code
A2
: FileTheOLXGroup2020A2.java
- Code
Code | Complexity | Description | Result | Report |
---|---|---|---|---|
A |
O(N^2) |
Sorted juice, using int [] |
OK |
WYKC29-9FG |
A2 |
O(N * log(N)) |
Sorted Juice, check only biggest capacity and biggest empty. | Good |
XYKRYX-DZ3 |