Writing code faster during Competitive Programming in C++
Introduction
This is the list of modern CPP tricks often used in Coding Interviews and Competitive Programming.
1. No more nested min(x, min(y, ...))
Use initializer list and std::min and std::max to make life easy
small = min(x, min(y, min(z, k))); ...
runtimeterror.hashnode.dev5 min read