LeetCode To send the code to LeetCode, you can remove the first two lines of code: #include <bits/stdc++.h> using namespace std; Those lines are used to compile and run the code locally but are not needed on LeetCode.