How to perform Array Element Parity in Golang
The challenge
You will be given an array of integers whose elements have both a negative and a positive value, except for one integer that is either …
Read Article →101 articles about go development, tools, and best practices
You will be given an array of integers whose elements have both a negative and a positive value, except for one integer that is either …
Read Article →You will have a list of rationals in the form:
lst = [ [numer_1, denom_1] , ... , [numer_n, denom_n] ]
where all numbers are positive …
Read Article →We have been searching for all the neighboring points in a Cartesian coordinate system. As we know each point in a coordinate system has …
Read Article →The prime number sequence starts with: 2,3,5,7,11,13,17,19.... Notice that 2 is in position one.
3 occupies position two, which is a …
In this challenge, you will be given a number n (n > 0) and your task will be to return the smallest square number N (N > 0) such …
The purpose of this challenge is to write a higher-order function returning a new function that iterates on a specified function a given …
Read Article →You will be given an integer array and your task is to return the sum of elements occupying prime-numbered indices.
The first element of …
Read Article →What is your favourite day of the week? Check if it’s the most frequent day of the week in the year.
You are given a year as …
Read Article →In this challenge, you will be given a string with brackets and an index of an opening bracket and your task will be to return the index …
Read Article →Write a function, called sumPPG, that takes two NBA player objects/struct/Hash/Dict/Class and sums their PPG
iverson := NBAPlayer{ …!-->
Read Article →
You will be given a number n (where n >= 1) and your task is to find n consecutive odd numbers whose sum is exactly the cube of n. …
You need to create a function that will validate if given parameters are valid geographical coordinates.
Valid coordinates look like the …
Read Article →