Gray code
Given a decimal number, convert it to its corresponding Gray code (see https://en.wikipedia.org/wiki/Gray_code).
8 -- 1100...
5 years ago
Solved
Median computation (★★★)
See easy edition of this problem. However, now you must
compute the median of any real-valued vector without using the in-built...
Magnitude of a vector (★★★)
Given a vector x with values [ x1, x2, x3, ..., xn ], compute the magnitude (or length) of the vector which is given by
<<htt...