How to Create an Incrementer in C
The challenge
Given an input of an array of digits, return the array with each digit incremented by its position in the array: the first digit will be …
Read Article →31 articles about c development, tools, and best practices
Given an input of an array of digits, return the array with each digit incremented by its position in the array: the first digit will be …
Read Article →Given a number return the closest number to it that is divisible by 10.
Example input:
22
25
37
Expected output:
20
30
40
Reverse every other word in a given string, then return the string. Throw away any leading or trailing whitespace, while ensuring there …
Read Article →Two red beads are placed between every two blue beads. There are N blue beads. After looking at the arrangement below work out the …
Read Article →Introduction
Task
The Maze array will look like
maze = [[1,1,1,1,1,1,1],
[1,0,0,0,0,0,3],
[1,0,1,0,1,0,1], …
!-->!-->
Read Article →
The number 89
is the first integer with more than one digit that fulfills the property partially introduced in the title of this …
You need to create a function that when provided with a triplet, returns the index of the numerical element that lies between the other …
Read Article →Task
King Arthur and his knights are having a New Years party. Last year Lancelot was jealous of Arthur, because Arthur had a date and …
Read Article →Build a pyramid-shaped tower, as an array/list of strings, given a positive integer number of floors
. A tower block is represented with …
A number m of the form 10x + y is divisible by 7 if and only if x − 2y is divisible by 7. In other words, subtract twice the last digit …
Read Article →The Western Suburbs Croquet Club has two categories of membership, Senior and Open. They would like your help with an application form …
Read Article →This program tests the life of an evaporator containing a gas.
We know the content of the evaporator (content in ml), the percentage of …
Read Article →