Description Classes in C++ are user defined types declared with keyword class that has data and functions . Although classes and structures have the same […]
Struct – C++
Description struct is a way to combine multiple fields to represent a composite data structure, which further lays the foundation for Object Oriented Programming. For example, […]
StringStream – C++
Description stringstream is a stream class to operate on strings. It basically implements input/output operations on memory (string) based streams. stringstream can be helpful in different type of […]
Box It! – C++ HackerRank
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.