Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input matrix and row and column, output the index of th...
environ 5 ans il y a
A résolu
Sum My Indices
Given inputs M and N (in that order), output an MxN matrix whose entries are equal to the sum of their indices.
Example input...
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
environ 5 ans il y a
A résolu
Number construction II
Given a positive integer, n, return a, b, c and d, such that
1. n = a*2^b+c*3^d
2. a, b, c and d are all positive integers...
environ 5 ans il y a
A résolu
Number construction I
Given a positive integer, n, return a, b, c and d, such that
1. n = a*sqrt(b)+c*sqrt(d)
2. a, b, c and d are all positive ...