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.
Welcome to my blog The Poor Coder. Here you can find hackerrank Solutions and various programming tutorials on NodeJs, VueJs, Python, Javascript, HTML and more.
Beeze Aal

Hackerrank Calculate the Nth term Solution

Objective This challenge will help you learn the concept of recursion. A function that calls itself is known as a recursive function. The C programming language supports recursion. But while using recursion, one needs to be careful to define an exit condition from the function, otherwise it will go into
Beeze Aal

Hackerrank Bitwise Operators Solution

Objective This challenge will let you learn about bitwise operators in C. Inside the CPU, mathematical operations like addition, subtraction, multiplication and division are done in bit-level. To perform bit-level operations in C programming, bitwise operators are used which are explained below. Bitwise AND operator &  The output of bitwise
Beeze Aal

Hackerrank For Loop in C Solution

Objective In this challenge, you will learn the usage of the for loop, which is a programming language statement which allows code to be repeatedly executed. The syntax for this is for ( <expression_1> ; <expression_2> ; <expression_3> ) <statement> expression_1 is
Beeze Aal

Hackerrank Conditional Statements in C Solution

.MathJax_SVG_LineBox {display: table!important} .MathJax_SVG_LineBox span {display: table-cell!important; width: 10000em!important; min-width: 0; max-width: none; padding: 0; border: 0; margin: 0} Objective if and else are two of the most frequently used conditionals in C/C++, and they enable you to execute zero or one
Beeze Aal

Hackerrank Pointers in C Solution

.MathJax_SVG_LineBox {display: table!important} .MathJax_SVG_LineBox span {display: table-cell!important; width: 10000em!important; min-width: 0; max-width: none; padding: 0; border: 0; margin: 0} Objective In this challenge, you will learn to implement the basic functionalities of pointers in C. A pointer in C is a way to
Beeze Aal

Hackerrank Functions in C Solution

.MathJax_SVG_LineBox {display: table!important} .MathJax_SVG_LineBox span {display: table-cell!important; width: 10000em!important; min-width: 0; max-width: none; padding: 0; border: 0; margin: 0} Objective In this challenge, you will learn simple usage of functions in C. Functions are a bunch of statements glued together. A function is
Beeze Aal

Hackerrank Sum and Difference of Two Numbers Solution

Objective The fundamental data types in c are int, float and char. Today, we're discussing int and float data types. The printf() function prints the given statement to the console. The syntax is printf("format string",argument_list);. In the function, if we are using an integer, character, string or
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 Accessing Inherited Functions Solution

You are given three classes A, B and C. All three classes implement their own version of func. In class A, func  multiplies the value passed as a parameter by : class A { public: A(){ callA = 0; } private: int callA; void inc(){ callA++; } protected: void func(int & a) { a = a
Beeze Aal

Hackerrank Deque-STL Solution

Double ended queue or Deque(part of C++ STL) are sequence containers with dynamic sizes that can be expanded or contracted on both ends (either its front or its back). The member functions of deque that are mainly used are: Deque Template: std::deque<value_type> Declaration: deque&