Find Maximum and Minimum Values of a List in Java
The challenge
Make two functions, max and min that take a(n) array/vector of integers list as input and outputs, respectively, the largest and lowest …
In-depth guides, insights, and best practices for modern software engineering
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 …!-->
A number system with moduli is defined by a vector of k moduli, [m1,m2, ···,mk].
The moduli must be pairwise co-prime, which means that, …
Given an array X of positive integers, its elements are to be transformed by running the following operation on them as many times as …
Read Article →Given
I = [l, u) (l is in interval I but u is not) l and u being floating numbers (0 <= l < u),Create an NxN multiplication table, of size provided in parameter.
for example, when given size is 3:
1 2 3
2 4 6
3 6 9
for given …
Read Article →