Mario Rossi
2016년부터 활동
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Strangest ways to get 0
Propose your non-trivial way to get 0. Look mine's, and try to do your best!
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전
문제를 풀었습니다
Non trivial identities - identity handle
Return x by handling the identity function.
7년 초과 전
문제를 풀었습니다
Non trivial identities - replication
Return x by replicating itself in any dimension.
7년 초과 전
문제를 풀었습니다
Non trivial identities - multiplication
Return x by multiplying it with a random number.
7년 초과 전
문제를 풀었습니다
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. ...
7년 초과 전
문제를 풀었습니다
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.
7년 초과 전
문제를 풀었습니다
Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.
7년 초과 전
문제를 풀었습니다
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...
7년 초과 전