CF - Cellular Network

Author: Benjamin Qi

Solution 1 - Using a Set

Official Editorial

Solution 2 - Two Pointers

1#include <bits/stdc++.h>
2using namespace std;
3
4typedef long long ll;
5typedef pair <int, int> pii;
6typedef vector<int> vi;
7
8#define mp make_pair
9#define pb push_back
10

Give Us Feedback on CF - Cellular Network!

Join the Discussion!

Feel free to voice your thoughts in the comments section.