Spiral Out - 01
Create a spiral matrix ( clock-wise direction ) of size n.
Try to do that without using the built-in function.
5 years ago
Solved
Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6
'************'
'***** *****'
'**** ****'
...
5 years ago
Solved
Grazing-01
A cow is tied to an outside corner of a rectangular barn of size (a,b) with a rope of length l. What is the maximum area the cow...
5 years ago
Solved
Create a 3D rotation matrix
Consider an arbitrary coordinate frame {A}. Consider another coordinate frame {B} which has the same origin as {A} but is rotat...
5 years ago
Solved
3rd side of a Triangle
Given two sides of a triangle, find the minimum and maximum possible area of the triangle.
the length of the third side has t...
5 years ago
Solved
Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...
Optimization of cylinder surface area
Optimization of a cylinder surface area.
What are the best parameters (radius and height) to get the minimum cylinder surface a...