Positions Average in Java
The challenge
Suppose you have 4 numbers: '0', '9', '6', '4' and 3 strings composed with them:
s1 = "6900690040"
s2 = "4690606946"
s3 …
Read Article →
In-depth guides, insights, and best practices for modern software engineering
Suppose you have 4 numbers: '0', '9', '6', '4' and 3 strings composed with them:
s1 = "6900690040"
s2 = "4690606946"
s3 …
Read Article →
What date corresponds to the nth day of the year?
The answer depends on whether the year is a leap year or not.
Write a function that …
Read Article →You probably know that some characters written on a piece of paper, after turning this sheet 180 degrees, can be read, although …
Read Article →Make two functions, max and min that take a(n) array/vector of integers list as input and outputs, respectively, the largest and lowest …
Write a function that takes a string of parentheses, and determines if the order of the parentheses is valid. The function should return …
Read Article →Write a function that determines whether a string is a valid guess in a Boggle board, as per the rules of Boggle. A Boggle board is a 2D …
Read Article →Your task is to construct a building which will be a pile of n cubes. The cube at the bottom will have a volume of n^3, the cube above …
Read Article →Consider the sequence U(n, x) = x + 2x**2 + 3x**3 + .. + nx**n where x is a real number and n a positive integer.
When n goes to …
Write a function that reverses the bits in an integer.
For example, the number 417 is 110100001 in binary. Reversing the binary is …
Given a set of numbers, return the additive inverse of each. Each positive becomes negatives, and the negatives become positives. …
Read Article →You have created a ./target/.jar and have tried to run it using java -jar <app>.jar yet receive a spring boot no main manifest attribute, in …!-->