Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...
5年弱 前
解決済み
Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners
Points = [x, y];
Triangle = [x1, y1; x...
5年弱 前
解決済み
03 - Matrix Variables 3
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_3c.png>>
A 10x10 matrix where the numbers from 1 to 100 ...
5年弱 前
解決済み
Remove all the words that end with "ain"
Given the string s1, return the string s2 with the target characters removed.
For example, given
s1 = 'the main event'
your ...
5年弱 前
解決済み
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
5年弱 前
解決済み
Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.
Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...