Find a common vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...
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...
6 years ago
Solved
Identify Wagstaff primes
The numbers 3, 43, and 2731 are examples of <https://mathworld.wolfram.com/WagstaffPrime.html Wagstaff primes>.
Write a func...
Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector.
For example:
x = [6 10 5 8 9 NaN 23 1...
Lunar Arithmetic (Multiplication)
<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic>
Simply take the larger digit when adding and take ...
6 years ago
Solved
convert?
* Given a string containing a number followed by pounds or kgs, for example:
* 'Billy lost 22 pounds in four weeks.'
* 'Maria ...