Maps-STL – HackerRank Solution

Problem : Maps are a part of the C++ STL.Maps are associative containers that store elements formed by a combination of a key value and a mapped value, following a specific order.The mainly used member functions of maps are: Map Template : Declaration : Size : Insert :

Read More

Sets-STL – HackerRank Solution

Problem : Sets are a part of the C++ STL. Sets are containers that store unique elements following a specific order. Here are some of the frequently used member functions of sets: Declaration : Size : Insert : Erasing an element : Finding an element : To know more about

Read More

Class – HackerRank Solution

Problem : Classes in C++ are user defined types declared with keyword class that has data and functions . Although classes and structures have the same type of functionality, there are some basic differences. The data members of a class are private by default and the members

Read More

Functions – HackerRank Solution

Problem : Functions are a bunch of statements glued together. A function is provided with zero or more arguments, and it executes the statements on it. Based on the return type, it either returns nothing (void) or something. A sample syntax for a function is For example, a

Read More