Sums of cubes and squares of sums
Given the positive integers 1:n, can you:
1. Compute twice the sum of the cubes of those numbers.
2. Subtract the square...
A little bit of luck needed
This one may require a little bit of guess work, but it is possible.
Hints:
- The same solution might fail the tests once and ...
remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector.
In this problem the challenge is ...
1 year ago
Solved
Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them.
For instance,
...
1 year ago
Solved
What kind of triangle?
Write a function named check_triangle that receives three positive integers as input: a, b, and c.
These three numbers are inte...
1 year ago
Solved
Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.