In this repository you can find the problems that I have solved to date, competitive programming and interviews.
At the beginning I did not take it so seriously and my general knowledge of other technologies was quite limited so now that I have acquired more skills I have decided to start from scratch and really have a study guide.
So if you want to checkout my newest solutions and how I'm going you can checkout either Fresh Start or AlgoExpert folders.
I'm keeping track of my progress using Dr Mostafa Saad Ibrahim Training Sheet, so if you want to checkout my current progress you can do it on the following sheet.
For all my problems 'll be using C++17, and just to keep record if this.
Compiler arguments:
Compile (F8): g++ -std=c++17 -Wshadow -Wall -o "%e" "%f" -O2 -Wno-unused-result
Build (F9): g++ -std=c++17 -Wshadow -Wall -o "%e" "%f" -g -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG
If you get compilation errors, try changing from c++17 to c++14 and/or removing sanitizers (two fsanitize flags).
C++17 Template:
#include <bits/stdc++. h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define ll long long
#define ld long double
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define INF 1e18
#define eps 0.00001
#define le length
#define debug(n1) cout << n1 << endl
#define rep0(i,n) for (i = 0; i < n; ++i)
#define rep(i , j , n) for(ll i = j ; i <= n ; i++)
#define per(i , j , n) for(ll i = j ; i >= n ; i--)
int main() {
SPEED;
return 0;
}