Decimal to Factorial and Back in Java
The challenge
Coding decimal numbers with factorials is a way of writing out numbers in a base system that depends on factorials, rather than powers …
Read Article →342 articles about java development, tools, and best practices
Coding decimal numbers with factorials is a way of writing out numbers in a base system that depends on factorials, rather than powers …
Read Article →Return the number (count) of vowels in the given string.
We will consider a, e, i, o, u
as vowels for this challenge (but not y
).
The …
Read Article →You are going to be given an array of integers. Your job is to take that array and find an index N where the sum of the integers to the …
Read Article →In the following 6 digit number:
283910
91
is the greatest sequence of 2 consecutive digits.
In the following 10 digit number: …
Read Article →Write a function that takes a positive integer and returns the next smaller positive integer containing the same digits.
For example: …
Read Article →Given an array of integers.
Return an array, where the first element is the count of positives numbers and the second element is sum of …
Read Article →You are given an odd-length array of integers, in which all of them are the same, except for one single number.
Complete the method …
Read Article →In a grid of 4 by 4 squares you want to place a skyscraper in each square with only some clues:
If you have received the package org.junit.jupiter.api deos not exist
error when trying to run a JUnit Java Test with Maven, it’s …
Given an array of positive or negative integers
I= [i<sub>1</sub>,..,i<sub>n</sub>]
you have to produce a sorted …
Read Article →Count the number of divisors of a positive integer n
.
Random tests go up to n = 500000
.
numberOfDivisors(4) == 3 // 1, 2, 4 …
Read Article →
Inspired from real-world Brainf**k, we want to create an interpreter of that language which will support the following instructions: …!-->!-->
Read Article →