Division
Given two numbers a and b divide them a/b
1 year ago
Solved
Path calculation with polynomials
Let a vector x be the input to our function.
1. If a value of an input vector element x is lower than 0, set this value to 0....
1 year ago
Solved
Find maximum value of a curve
Two vectors shall be already defined:
- Input vector x (e.g. x = 0:1:10)
- Result vector y (e.g. y = sin(x))
Create a n...
1 year ago
Solved
Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square.
...
1 year ago
Solved
Area-02
Given the radius of the circle inscribed in a square, find the area of the square that can be fitted perfectly in the corner.
...
1 year ago
Solved
Area-06
The length of the side of a square is given.
Draw 4 quarter-circles inside the square from 4 corners with a radius equal to the...
1 year ago
Solved
'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...
1 year ago
Solved
Replace May with April
For instance, if the input is
input_str = 'The flowers may bloom in April';
then the output is
output_str = 'The flo...
1 year ago
Solved
Breaking up a chocolate bar
You've got a chocolate bar of size , and you want to break it up into bite-sized () pieces. How many steps are required to do th...
1 year ago
Solved
Find the Oldest Person in a Room
Given two input vectors:
* |name| - user last names
* |age| - corresponding age of the person
Return the name of the ol...
1 year ago
Solved
Check the 'golden prime squares' equation
Historical context
In december 2023, I / Nicolas Douillet was working on prime squares properties and I found* the formula :
...