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.

Introduction

Beeze Aal

Hackerrank Ruby Tutorial - Object Method Parameters Solution

A method may take zero or more parameters as input. To demonstrate this, we look at the asserts we use on HackerRank. Sometimes, we have to check whether a given number a is within the range b and c (where b  c, and both inclusive ). Three variables a, b, and
Beeze Aal

Hackerrank Ruby Tutorial - Object Methods Solution

.MathJax_SVG_Display {text-align: center; margin: 1em 0em; position: relative; display: block!important; text-indent: 0; max-width: none; max-height: none; min-width: 0; min-height: 0; width: 100%} .MathJax_SVG .MJX-monospace {font-family: monospace} .MathJax_SVG .MJX-sans-serif {font-family: sans-serif} .MathJax_SVG {display: inline; font-style: normal; font-weight: normal; line-height: normal; font-size: 100%; font-size-adjust: none; text-indent:
Beeze Aal

Hackerrank Ruby Tutorial - Everything is an Object Solution

Everything is an object in Ruby. For instance, if you type print self in the code-editor, Ruby treats self as the object in which it is currently referred to. Give it a try! Solution in rubyprint self
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

Objective In this challenge, you will learn simple usage of functions in C. Functions are a bunch of statements glued together. A function is provided with zero or more arguments, and it executes the statements on it. Based on the return type, it either returns nothing (void) or something. A
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 Variable Sized Arrays 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} Consider an -element array, , where each index  in the array contains a reference to an array of  integers (where the value of  varies from
Beeze Aal

Hackerrank Arrays Introduction 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} An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an
Beeze Aal

Hackerrank Pointer Solution

A pointer in C is a way to share a memory address among different contexts (primarily functions). They are primarily used whenever a function needs to modify the content of a variable, of which it doesn't have ownership. In order to access the memory address of a variable, , we need
Beeze Aal

Hackerrank 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} Functions are a bunch of statements glued together. A function is provided with zero or more arguments, and it executes the statements on it.
Beeze Aal

Hackerrank For Loop Solution

A for loop 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 used for intializing variables which are generally used for controlling terminating
Beeze Aal

Hackerrank Conditional Statements 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} if and else are two of the most frequently used conditionals in C/C++, and they enable you to execute zero or one conditional