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.
Home
Author
Terms
Privacy
About
Tumblr
Pinterest
Enable dark mode
Classes
Beeze Aal
30.Jul.2020
Hackerrank Virtual Functions 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} This problem is to get you familiar with virtual functions. Create three classes Person, Professor and Student. The class Person should have data members
Beeze Aal
30.Jul.2020
Hackerrank Exceptional Server Solution
Your friend set up a small computational server that performs complex calculations. It has a function that takes large numbers as its input and returns a numeric result. Unfortunately, there are various exceptions that may occur during execution. Complete the code in your editor so that it prints appropriate error
Beeze Aal
30.Jul.2020
Hackerrank Inherited Code 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} You inherited a piece of code that performs username validation for your company's website. The existing function works reasonably well, but it throws an
Beeze Aal
29.Jul.2020
Hackerrank Box It! Solution
Design a class named Box whose dimensions are integers and private to the class. The dimensions are labelled: length , breadth , and height . The default constructor of the class should initialize , , and to . The parameterized constructor Box(int length, int breadth, int height) should initialize Box's and to length, breadth and
Beeze Aal
29.Jul.2020
Hackerrank Classes and Objects Solution
A class defines a blueprint for an object. We use the same syntax to declare objects of a class as we use to declare variables of other basic types. For example: Box box1; // Declares variable box1 of type Box Box box2; // Declare variable box2 of type Box Kristen is a
Beeze Aal
29.Jul.2020
Hackerrank Class 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} Classes in C++ are user defined types declared with keyword class that has data and functions . Although classes and structures have the same type
Beeze Aal
29.Jul.2020
Hackerrank Structs Solution
struct is a way to combine multiple fields to represent a composite data structure, which further lays the foundation for Object Oriented Programming. For example, we can store details related to a student in a struct consisting of his age (int), first_name (string), last_name (string) and standard (int)
Beeze Aal
27.Jul.2020
Hackerrank Class 2 - Find the Torsional Angle Solution
You are given four points and in a 3-dimensional Cartesian coordinate system. You are required to print the angle between the plane made by the points and in degrees(not radians). Let the angle be . where x and x . Here, means the dot product of and , and x means the
Beeze Aal
27.Jul.2020
Hackerrank Classes: Dealing with Complex Numbers Solution
For this challenge, you are given two complex numbers, and you have to print the result of their addition, subtraction, multiplication, division and modulus operations. The real and imaginary precision part should be correct up to two decimal places. Input Format One line of input: The real and imaginary part