There are a few HackerRank Challenges posted below. The HackerRank team used to send out weekly challenges by email, and there are a tons of challenges on their site, worth to try, not only for fun. It is a very efficient way to learn coding not only C++ there are many other languages supported by the HackerRank team. These source codes simply for guidance.

PLEASE DO NOT COPY AND PASTE ONTO HACKERRANK SITE AS A SOLUTION!

Try to solve them on your own.  –  Happy Coding!

You can compile and run these source codes from your favourite terminal using one of the following commands:

Some of these examples uses a stdc.h header file, you can download it from here: stdc++.h (69 downloads)

Cpp exception handling (cpp)

Messages Order (cpp)

Hotel Prices (cpp)

Overloading Ostream Operator (cpp)

Print Pretty (cpp)

Maps-STL (cpp)

Lower Bound-STL (cpp)

Deque-STL (cpp)

Largest Rectangle (cpp)

Binary Search Tree : Lowest Common Ancestor (cpp)

Compare two linked lists (cpp)

Exceptional Server (cpp)

Magic spells (cpp)

Box It! (cpp)

Accessing Inherited Functions (cpp)

Set – STL (cpp)

Multi Level Inheritance (cpp)

Variable Sized Arrays (cpp)

Virtual Function (cpp)

Rectangle Area (cpp)

Chocolate Feast (cpp)

Library Fine (cpp)

Alternating Characters (cpp)

Angry Professor (cpp)

Array Manipulation (cpp)