The repository that contains all solutions made for the course Competitive Programming and Contests by the University of Pisa
| Solved | Solution | Time |
|---|---|---|
| Queue | 312 ms | |
| Two pointers | 327 ms |
The time complexity of the solution in both cases is O(N) and also the space complexity is O(N).