Code breaker, Part III: Operation Xiangliu
You have been tasked with decoding several batches of coded messages that have been intercepted.
Based on previous intellig...
Be happy
check whether the given number is happy in b-base.
* A happy number can be defined as a number which will yield 1 when it is ...
5 years ago
Solved
Balanced Ternary Numbers: Easy as |, |-, |o
This problem concerns the so-called <http://en.wikipedia.org/wiki/Balanced_ternary balanced ternary> system for representing num...
5 years ago
Solved
Guess the number I'm thinking of
In this game you are competing against two other people to guess the number that I'm thinking of.
# I randomly choose an *i...
Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN.
Example:
input: x = [1 2 5 12 10 7]
...