37. implement SmallerThan<A, B>

TypeScript
Is this helpful ?

  - accepted / - tried

Implement SmallerThan<A, B> to compare two positive integers.

type A = SmallerThan<0, 1> // true
type B = SmallerThan<1, 0> // false
type C = SmallerThan<10, 9> // false

Let's try to solve this problem within 10 minutes.

Discuss(7)