Skip to content

I built this Repo, without any thought, nor any intension to show off, yet since i felt the power of C++ & its speed and easiness to solve algorithmic & ease of built in convenient datastructer, I barely can get out of it. ~ "Design and programming are human activities; forget that and all is lost" ~ Bjarne Stroustrup

Notifications You must be signed in to change notification settings

sounishnath003/CPP-for-beginner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP-for-beginner

a basic and advamced concept of c++. hope to work in future

Tricks to Faster Compilation and DEBUG

for faster compilation add this to your compiler --flags

cd $dir && g++ -std=c++17 -g -O2 -Wshadow -Wall -pedantic -Wl,--stack=268435456 -pthread $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"

Errichto Special Flags:

g++ -std=c++17 -Wshadow -Wall -o a a.cpp -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG -g

Debug Template

  #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.

C++ For Competetive Programmer's Choice 🔥

C++|Programming

Build Status

Competitive Practice Solutions

  • Basically C++ library Magics
  • C++|Programming
  • power of C++ Stl

New Features!

  • 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.

Contributions

More Developers should participate to enrich the Repo further.

Clean and Optimised Time complexity Analysis

Complexitites

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

Todos

  • Write MORE Problems
  • Add Organised Functors
  • Pointer Concepts😎

License

MIT

Free Software, Hell Yeah!

About

I built this Repo, without any thought, nor any intension to show off, yet since i felt the power of C++ & its speed and easiness to solve algorithmic & ease of built in convenient datastructer, I barely can get out of it. ~ "Design and programming are human activities; forget that and all is lost" ~ Bjarne Stroustrup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages