36. implement LargerThan<A, B>

TypeScript
Is this helpful ?

  - accepted / - tried

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

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

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

Discuss(6)