Skip to content

SL TECH ACADEMY

Contact us
  • Home
  • C++
  • Pyhton
  • Java
  • Networking
  • Problem Solving
    • Algorithms
    • Data Structures
  • Contests
    • IOI
    • APIO
    • Google
      • Code Jam
      • Hash Code
      • Kick Start
  • Resources

SL TECH ACADEMY

Month: July 2020

  • Algorithms

Compare the Triplets – HackerRank Solution

imageByPasindu PiumalJuly 31, 2020
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

Read More

  • Algorithms

Simple Array Sum – HackerRank Solution

imageByPasindu PiumalJuly 28, 2020
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

Read More

  • Algorithms

Solve Me First – HackerRank Solution

imageByPasindu PiumalJuly 27, 2020
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 :

Read More

  • IOI

IOI 2017 – ANCIENT BOOKS PROBLEM and SOLUTION

imageByPasindu PiumalJuly 27, 2020
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.

Read More

  • IOI

IOI 2017 – Simurgh Problem and Solution

imageByPasindu PiumalJuly 27, 2020
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.

Read More

  • IOI

IOI 2017 – The Big Prize Problem and Solution

imageByPasindu PiumalJuly 27, 2020
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.

Read More

  • IOI

IOI 2017 – Toy Train Problem and Solution

imageByPasindu PiumalJuly 27, 2020
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.

Read More

  • IOI

IOI 2017 – Wiring Problem and Solution

imageByPasindu PiumalJuly 27, 2020
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.

Read More

  • IOI

IOI 2017 – Nowruz Problem and Solution

imageByPasindu PiumalJuly 27, 2020
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.

Read More

  • C++

Pointer – HackerRank Solution

imageByPasindu PiumalJuly 21, 2020
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

Read More

  • C++

Functions – HackerRank Solution

imageByPasindu PiumalJuly 21, 2020
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

Read More

  • C++

For Loop – HackerRank Solution

imageByPasindu PiumalJuly 19, 2020
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.

Read More

  • C++

Conditional Statements – HackerRank Solution

imageByPasindu PiumalJuly 18, 2020
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

Read More

  • C++

Basic Data Types – HackerRank Solution

imageByPasindu PiumalJuly 17, 2020
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

Read More

  • Code Jam

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

imageByPasindu PiumalJuly 17, 2020
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

Read More

  • APIO

APIO 2019 Problems and Solutions

imageByPasindu PiumalJuly 17, 2020
APIO 2019 Problems and Solutions
The official APIO 2019 problems and solutions in this post

Read More

  • C++

Input and Output – HackerRank Solution

imageByPasindu PiumalJuly 17, 2020
Input and Output – HackerRank Solution
Objective : In this challenge, we’re practicing reading input from stdin and printing output to stdout. Question : 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

Read More

  • C++

Say “Hello, World!” With C++ – HackerRank Solution

imageByPasindu PiumalJuly 17, 2020
Say “Hello, World!” With C++ – HackerRank Solution
Objective : This is a simple challenge to help you practice printing to stdout. Question : We’re starting out by printing the most famous computing phrase of all time! In the editor below, use either printf or cout to print the string 

Read More

Last Posts

IOI 2020

IOI 2020 – Contest Day 1- Tickets Problem and Solution

September 24, 2020
IOI 2020

IOI 2020 – Contest Day 1- Supertrees Problem and Solution

September 24, 2020
IOI 2020

IOI 2020 – Contest Day 1- Plants Problem and Solution

September 24, 2020

Day of the Programmer – HackerRank Solution

September 11, 2020

APIO 2020 Problems and Solutions – Fun Tour

September 5, 2020

Archives

  • September 2020 (10)
  • August 2020 (68)
  • July 2020 (18)
Created by SL TECH ACADEMY. Powered by WordPress
Logo
  • Home
  • C++
  • Pyhton
  • Java
  • Networking
  • Problem Solving
    • Algorithms
    • Data Structures
  • Contests
    • IOI
    • APIO
    • Google
      • Code Jam
      • Hash Code
      • Kick Start
  • Resources