a basic and advamced concept of c++. hope to work in future
cd $dir && g++ -std=c++17 -g -O2 -Wshadow -Wall -pedantic -Wl,--stack=268435456 -pthread $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
g++ -std=c++17 -Wshadow -Wall -o a a.cpp -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG -g
#include
using namespace std ;
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename enable_if(0) x 1, debug&>::type operator<<(c i) {
template < class c > struct rge { c b, e; };
template < class c > rge range(c i, c j) { return rge{i, j}; }
template < class c > auto dud(c* x) -> decltype(cerr << *x, 0);
template < class c > char dud(...);
struct debug {
~debug() { cerr << endl; }
template < class c > typename \
enable_if(0) != 1, debug&>::type operator<<(c i) { cerr << boolalpha << i; return * this; }
template < class c > typename \
enable_if(0) == 1, debug&>::type operator<<(c i) {return * this << range(begin(i), end(i)); }
template < class c, class b > debug & operator << (pair < b, c > d) { return * this << "(" << d.first << ", " << d.second << ")";}
template < class c > debug & operator <<(rge d) { *this << "["; for (auto it = d.b; it != d.e; ++it) *this << ", " + 2 * (it == d.b) << *it; return * this << "]";}
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
**here i use VSCODE CODE RUNNER variables name , you can modify the unlined $
variable name.
- More Stuffs and daily practice
- Habbits should be taken, more versatile updates ❤
You can also:
- C++ Source files should be downloaded to test on your own.
More Developers should participate to enrich the Repo further.
Clean and Optimised
Time complexity Analysis
I love to write optimised code, for Time complexity purposes.
Time complexity of an algorithm quantifies the amount of time taken by an algorithm to run as a function of the length of the input
- Write MORE Problems
- Add Organised Functors
- Pointer Concepts😎
MIT
Free Software, Hell Yeah!