## Compare the Triplets – HackerRank Solution

Problem : Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from 1 to 100 for three categories: problem clarity, originality, and difficulty. The rating for Alice’s

## Simple Array Sum – HackerRank Solution

Problem : Given an array of integers, find the sum of its elements. For example, if the array ar = [1, 2, 3], 1 + 2 + 3 = 6, so return 6. Function Description : Complete the simpleArraySum function in the editor below. It must return the sum of the array

## Solve Me First – HackerRank Solution

Problem : Complete the function solveMeFirst to compute the sum of two integers. Function prototype : int solveMeFirst(int a, int b); where, a is the first integer input. b is the second integer input Return values : sum of the above two integers Sample Input :

## IOI 2017 – ANCIENT BOOKS PROBLEM and SOLUTION

The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Ancient Books problem and solutions below.

## IOI 2017 – Simurgh Problem and Solution

The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Simurgh problem and solutions below.

## IOI 2017 – The Big Prize Problem and Solution

The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the The Big Prize problem and solutions below.

## IOI 2017 – Toy Train Problem and Solution

The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Toy Train problem and solutions below.

## IOI 2017 – Wiring Problem and Solution

The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Wiring problem and solutions below.

## IOI 2017 – Nowruz Problem and Solution

The 29th International Olympiad in Informatics was held in Tehran, Iran in 2017. There were two competition days, with 3 problems given to the competitors on each day. You can see the Nowruz problem and solutions below.

## Pointer – HackerRank Solution

Problem : 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

## Functions – HackerRank Solution

Problem : 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 sample syntax for a function is For example, a

## For Loop – HackerRank Solution

Problem : A for loop is a programming language statement which allows code to be repeatedly executed. The syntax for this is expression_1 is used for initializing variables which are generally used for controlling terminating flag for the loop.

## Conditional Statements – HackerRank Solution

Problem : if and else are two of the most frequently used conditionals in C/C++, and they enable you to execute zero or one conditional statement among many such dependent conditional statements. We use them in the following ways: 1. if: This executes the

## Basic Data Types – HackerRank Solution

Problem : Some C++ data types, their format specifiers, and their most common bit widths are as follows: Int (“%d”): 32 Bit integer Long (“%ld”): 64 bit integer Char (“%c”): Character type Float

## Google Code Jam 2019 – Qualification Round Solutions (C++ and Python)

1. Foregone Solution – Problem A Problem : Someone just won the Code Jam lottery, and we owe them N jamcoins! However, when we tried to print out an oversized check, we encountered a problem. The value of N, which is an integer, includes at least one

## APIO 2019 Problems and Solutions

The official APIO 2019 problems and solutions in this post