Community Profile # Mario Rossi

Active since 2016

#### Statistics

• • #### Content Feed

View by

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni 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...

circa 5 anni 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...

circa 5 anni 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...

circa 5 anni 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...

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

Non trivial identities - roots
Return x after rooting it.

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

Non trivial identities - multiplication
Return x after multipying it.

circa 5 anni ago

Solved

Non trivial identities - division
Return x after dividing it.

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

Non trivial identities - complexification
Return x by complexifying it.

circa 5 anni ago

Solved

Non trivial identities - differentiation
Return x by differentiating it.

circa 5 anni ago

Solved

Non trivial identities - reshape
Return x by reshaping it.

circa 5 anni ago

Solved

Non trivial identities - flipping
Return x by flipping it.

circa 5 anni ago

Solved

Non trivial identities - transpose
Return x by transposing it.

circa 5 anni ago

Solved

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

circa 5 anni ago

Solved

Non trivial identities - round
Return x after rounding it.

circa 5 anni ago

Solved

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

circa 5 anni 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. ...

circa 5 anni 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.

circa 5 anni ago

Solved

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

circa 5 anni 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...

circa 5 anni ago