https://github.com/siakhooi/codility-olx-group-2020
Codility Challenge: OLX Group 2020 (Medium)
https://github.com/siakhooi/codility-olx-group-2020
codility codility-challenges java junit5 maven
Last synced: about 1 month ago
JSON representation
Codility Challenge: OLX Group 2020 (Medium)
- Host: GitHub
- URL: https://github.com/siakhooi/codility-olx-group-2020
- Owner: siakhooi
- Created: 2021-04-25T01:58:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T11:08:55.000Z (over 4 years ago)
- Last Synced: 2025-06-15T03:05:40.882Z (12 months ago)
- Topics: codility, codility-challenges, java, junit5, maven
- Language: Java
- Homepage:
- Size: 149 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codility Challenge: OLX Group 2020
## Multivitamin
- 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.
-
-
## Versions
- Result
- `Good`: Correctness 100%, Performance 100%.
- `OK`: Correctness 100%, Performance <100%.
- File naming convention
- Code `A`: File `TheOLXGroup2020A.java`
- Code `A2`: File `TheOLXGroup2020A2.java`
| Code | Complexity | Description | Result | Report |
| ---- | --------------- | ------------------------------------------------------------ | ------ | ----------------------------------------------------------------------- |
| `A` | `O(N^2)` | Sorted juice, using `int []` | `OK` | [WYKC29-9FG](https://app.codility.com/demo/results/trainingWYKC29-9FG/) |
| `A2` | `O(N * log(N))` | Sorted Juice, check only biggest capacity and biggest empty. | `Good` | [XYKRYX-DZ3](https://app.codility.com/demo/results/trainingXYKRYX-DZ3/) |