Skip to content
the poor coder

Home / Topics / #hackerrank

#Hackerrank

419 posts · page 4 of 21
2020

Count Triplets Solution in C++

You are given an array and you need to find number of tripets of indices such that the elements at those indices are in geometric progression for a given common ratio and . For example, . If , we have and at indices and…

Hackerrank2 min read
2020

Array Manipulation Java Solution

Starting with a 1-indexed array of zeros and a list of operations, for each operation add a value to each of the array element between two given indices, inclusive. Once all operations have been performed, return the…

Hackerrank3 min read
2020

Array Manipulation C++ Solution

Starting with a 1-indexed array of zeros and a list of operations, for each operation add a value to each of the array element between two given indices, inclusive. Once all operations have been performed, return the…

Hackerrank3 min read
2020

Hackerrank Pointers in C Solution

Objective In this challenge, you will learn to implement the basic functionalities of pointers in C. A pointer in C is a way to share a memory address among different contexts (primarily functions). They are primarily…

2020

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…

ESC