Category Archives: HackerRank Solution

HackerRank Solutions – 30 Days of Code – Day 4

HackerRank Solutions - 30 Days of Code - Day 4 Objective In this challenge, we're going to learn about the difference between a class and an instance; because this is an Object Orientedconcept, it's only enabled in certain languages. Task Write a Person class with an instance variable, , and a constructor that takes an integer, , as a parameter. The constructor must…

HackerRank Solution – 30 Days of Code – Day 3

Objective In this challenge, we're getting started with conditional statements. Check out the Tutorial tab for learning materials and an instructional video! Task Given an integer, , perform the following conditional actions: If is odd, print Weird If is even and in the inclusive range of to , print Not Weird If is even and…

HackerRank Soutions – 30 Days of Code – Day 1

Objective Today, we're discussing data types. Check out the Tutorial tab for learning materials and an instructional video! Task Complete the code in the editor below. The variables , , and  are already declared and initialized for you. You must: Declare  variables: one of type int, one of type double, and one of type String. Read  lines of input from stdin (according to the sequence…