In this repository, I solved the challenges that I found in Codility.
All codes were implemented by PHP.
For each problem, you can find the independent directory and in that, you can these 2 files:
- Problem Description: As its name refers, you can find the problem here.
- solution.php: In this file, I developed the algorithm.
All solutions got 100% in correctness and performance. In Some cases we have 2 approaches:
- The main which gets the best record.
- The common solution which may come to mind first.