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 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
Beeze Aal

Hackerrank Basic Data Types Solution

Some C++ data types, their format specifiers, and their most common bit widths are as follows: Int ("%d"): 32 Bit integerLong ("%ld"): 64 bit integerChar ("%c"): Character typeFloat ("%f"): 32 bit real valueDouble ("%lf"): 64 bit real valueReading To read a data type, use the following syntax: scanf("`format_specifier`
Beeze Aal

Hackerrank Input and Output Solution

Objective In this challenge, we're practicing reading input from stdin and printing output to stdout. In C++, you can read a single whitespace-separated token of input using cin, and print output to stdout using cout. For example, let's say we declare the following variables:string s;int n; and we
Beeze Aal

Hackerrank Java Date and Time Solution

The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as YEAR, MONTH, DAY_OF_MONTH, HOUR, and so on, and for manipulating the calendar fields, such as getting the date of the next week.