Base-2 in Java
The challenge
In this challenge you must convert integers numbers from and to a negative-base binary system.
Negative-base systems can accommodate all …
Read Article →In-depth guides, insights, and best practices for modern software engineering
In this challenge you must convert integers numbers from and to a negative-base binary system.
Negative-base systems can accommodate all …
Read Article →Consider the following series:
0,1,2,3,4,5,6,7,8,9,10,22,11,20,13,24...There is nothing special between numbers `` and 10.
Let’s …
Read Article →The palindromic number 595 is interesting because it can be written as the sum of consecutive squares: 6^2 + 7^2 + 8^2 + 9^2 + 10^2 + …
Implement a function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, …
Read Article →Given two different positions on a chess board, find the least number of moves it would take a knight to get from one to the other. The …
Read Article →Write a function that makes a list of strings representing all of the ways you can balance n pairs of parentheses
Your task in order to complete this challenge is to write a function which formats a duration, given as a number of seconds, in a …
Read Article →Consider the following expansion:
// because "ab" repeats 3 times
solve("3(ab)") == "ababab"
// because …
Read Article →
A Hamming number is a positive integer of the form 2i3j5k, for some non-negative integers i, j, and k.
Read Article →Consider the following array:
[1, 12, 123, 1234, 12345, 123456, 1234567, 12345678, 123456789, 12345678910, 1234567891011...]
If we join …
Read Article →Create a RomanNumerals class that can convert a roman numeral to and from an integer value. It should follow the API demonstrated in the …
Read Article →Given a number of points on a plane, your task is to find two points with the smallest distance between them in linearithmic O(n log n) …!-->
Read Article →