Community Profile

Mario Rossi

32 total contributions since 2016

View details...

Contributions in
View by

Solved

Pushing the envelope
Find the largest sized code to return... *nothing*.

4 years ago

Solved

Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!

4 years ago

Solved

A shooting competition
In a shooting competition, the target is a square of side L containing a circle of radius R<=L/2. A player scores one point if h...

4 years ago

Solved

Probabilities - Balls and urns - 02
The urn contains B blue balls and R red balls. Each trial consists of drawing one random ball from the urn and observing its col...

4 years ago

Solved

Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

4 years ago

Solved

Probabilities - Balls and urns - 01
The urn contains B blue balls and R red balls. Each trial consists of drawing one random ball from the urn and observing its col...

4 years ago

Solved

Non trivial identities - colon
Return x after treating it with colon.

4 years ago

Solved

Non trivial identities - identity handle
Return x by handling the identity function.

4 years ago

Solved

Non trivial identities - linear system
Return x by solving a linear system.

4 years ago

Solved

Non trivial identities - roots
Return x after rooting it.

4 years ago

Solved

Non trivial identities - power
Return x by by rising it to a power.

4 years ago

Solved

Non trivial identities - double negative
Return x after negating it.

4 years ago

Solved

Non trivial identities - polynomial
Return x as a polynomial of itself.

4 years ago

Solved

Non trivial identities - absolute value
Return x by computing its absolute value.

4 years ago

Solved

Non trivial identities - multiplication
Return x after multipying it.

4 years ago

Solved

Non trivial identities - division
Return x after dividing it.

4 years ago

Solved

Non trivial identities - replication
Return x by replicating itself in any dimension.

4 years ago

Solved

Non trivial identities - open your eyes
Return x by using your eyes.

4 years ago

Solved

Non trivial identities - complexification
Return x by complexifying it.

4 years ago

Solved

Non trivial identities - differentiation
Return x by differentiating it.

4 years ago

Solved

Non trivial identities - reshape
Return x by reshaping it.

4 years ago

Solved

Non trivial identities - flipping
Return x by flipping it.

4 years ago

Solved

Non trivial identities - transpose
Return x by transposing it.

4 years ago

Solved

Non trivial identities - multiplication
Return x by multiplying it with a random number.

4 years ago

Solved

Non trivial identities - round
Return x after rounding it.

4 years ago

Solved

Non trivial identities - summation
Return x by adding a random number to it.

4 years ago

Solved

Geometrical meaning of determinant
Given two vectors x,y, in 2D or three vectors x,y,z in 3D space, compute the area (or volume) of the parallelogram they define. ...

4 years ago

Solved

Find the diagonal of the square of side L
You are given a square of side length L, find D the length of its diagonal.

4 years ago

Solved

Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

4 years ago

Solved

Remove collinear points in a set of 2D points defining a polygon
Consider a polygon that is obtained by joining a set of 2D points whose coordinates are stored in matrix P=[x,y]. Write a functi...

4 years ago