One thing to note is to convert one of the multipliers to long long in advance so that the result in the middle won’t be […]
Deque-STL – HackerRank
The crux here is that a number must be pushed into the deque on its turn since the bigger ones will be obsolete when they […]
Print Pretty – HackerRank
Three ways to set ioflags: (They are of type ios::fmtflags) All the configurations are global. Example References http://www.cplusplus.com/reference/ios/ios_base/fmtflags/ http://www.cplusplus.com/reference/iomanip/setiosflags/
Variable Sized Arrays – HackerRank
It’s about C++ vector.