5 ms·
> dismal ← 10⊥(⌈/10⊥⍣¯1⊢) And what does that look like in C?
by thelastparadise 3y ago
> dismal ← 10⊥(⌈/10⊥⍣¯1⊢)
And what does that look like in C?
- LegionMammal978 3y agoIn traditional C style, something like unsigned dismal(unsigned x, unsigned y) { unsigned z; for (z = 0; x || y; x /= 10, y /= 10) z = z * 10 + (x % 10 > y % 10 ? x % 10 : y % 10); return z; }