You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.

Other Concepts

Beeze Aal

Hackerrank C++ Class Template Specialization Solution

You are given a main function which reads the enumeration values for two different types as input, then prints out the corresponding  enumeration names. Write a class template that can provide the names of the enumeration values for both types. If the enumeration value is not valid, then print unknown.
Beeze Aal

Hackerrank Attending Workshops Solution

A student signed up for  workshops and wants to attend the maximum number of workshops where no two workshops overlap. You must do the following: Implement  structures: struct Workshop having the following members: The workshop's start time.The workshop's duration.The workshop's end time.struct Available_Workshops having the following
Beeze Aal

Hackerrank Operator Overloading Solution

Classes define new types in C++. Types in C++ not only interact by means of constructions and assignments but also via operators. For example: int a=2, b=1, c; c = b + a; The result of variable c will be 3. Similarly, classes can also perform operations using operator overloading.
Beeze Aal

Hackerrank Overload Operators Solution

You are given a class - Complex. class Complex { public: int a,b; }; Operators are overloaded by means of operator functions, which are regular functions with special names. Their name begins with the operator keyword followed by the operator sign that is overloaded. The syntax is: type operator sign (parameters)
Beeze Aal

Hackerrank Preprocessor Solution Solution

Preprocessor directives are lines included in the code preceded by a hash sign (#). These lines are directives for the preprocessor. The preprocessor examines the code before actual compilation of code begins and resolves all these directives before any code is actually generated by regular statements. #define INF 10000000 if( val
Beeze Aal

Hackerrank C++ Class Templates Solution

A class template provides a specification for generating classes based on parameters. Class templates are generally used to implement containers. A class template is instantiated by passing a given set of types to it as template arguments. Here is an example of a class, MyTemplate, that can store one element