Times 3 problem
When you enter the number, it should return the number multiplied by 3
11年弱 前
解決済み
Hydrogens in a Saturated Hydrocarbon
Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?
Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n.
For instance :
x= [...
Finding an element in a vector
x is a vector of unknown length
your function should return the index of the first element in the vector that is greater than...