Loops – HackerRank Solution

Problem : Task : The provided code stub reads and integer, n, from STDIN. For all non-negative integers i < n, print i2. Example : n = 3 The list of non-negative integers that are less than n = 3 is [0, 1, 2]. Print the square of each number on a separate line. Input

Read More

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