Blog Posts

How to Find the Sum of Intervals in Java

December 11, 2022

The challenge Write a function called sumIntervals/sum_intervals() that accepts an array of intervals, and returns the sum of all the interval lengths.


Read More

How to Find the Stray Number in Python

December 10, 2022

The challenge You are given an odd-length array of integers, in which all of them are the same, except for one single number.


Read More

How to Find the EDID UUID of External Mac Monitors

December 9, 2022

You can issue the following command on an Apple Mac’s terminal to show the EDID UUID (unique serial number) of all attached external monitors:


Read More

[Solved] jsii.errors.JSIIError: docker exited with status 1

December 8, 2022

If you get the following error while running AWS CDK:


Read More

How to Filter a Number in C

December 7, 2022

The challenge The number has been mixed up with the text.


Read More

How to Take a Ten Minute Walk in C

December 6, 2022

The challenge You live in the city of Cartesia where all roads are laid out in a perfect grid.


Read More

How to Count Stats of a String in C

December 5, 2022

The challenge You will be given a string and your task will be to return a list of ints detailing the count of uppercase letters, lowercase, numbers and special characters, as follows.


Read More

How to Convert a String to the NATO Phonetic Alphabet in C

December 4, 2022

The challenge You’ll have to translate a string to Pilot’s alphabet (NATO phonetic alphabet).


Read More

How to Add 1 to the Value of each Array in C

December 3, 2022

The challenge Given an array of integers of any length, return an array that has 1 added to the value represented by the array.


Read More

How to Calculate the Sum of a Sequence in C

December 2, 2022

The challenge Your task is to make function, which returns the sum of a sequence of integers.


Read More

How to Solve the Sum of Triangular Numbers in C

December 1, 2022

The challenge Your task is to return the sum of Triangular Numbers up-to-and-including the nth Triangular Number.


Read More

How to Determine if a String Only Contains Unique Characters in C

November 30, 2022

The challenge Write a program to determine if a string contains only unique characters.


Read More

How to Find the Maximum Multiple in C

November 29, 2022

The challenge Given a Divisor and a Bound , Find the largest integer N , Such That ,


Read More

How to Assign a Digital Cypher in C

November 28, 2022

The challenge Digital Cypher assigns to each letter of the alphabet unique number.


Read More

How to Check for All Inclusive in C

November 27, 2022

The challenge Input: a string strng an array of strings arr Output of function contain_all_rots(strng, arr) (or containAllRots or contain-all-rots):


Read More

How to Solve for Factorial in C

November 26, 2022

The challenge In mathematics, the factorial of a non-negative integer n, denoted by n!


Read More

How to Create an Incrementer in C

November 25, 2022

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 incremented by 1, the second digit by 2, etc.


Read More

How to Return the Closest Number Multiple of 10 in C

November 24, 2022

The challenge Given a number return the closest number to it that is divisible by 10.


Read More

How to Reverse Every Other Word in a String in C

November 23, 2022

The challenge Reverse every other word in a given string, then return the string.


Read More

How to Solve Simple Beads Count in C

November 22, 2022

The challenge Two red beads are placed between every two blue beads.


Read More