48. implement Divide<A, B>

TypeScript

  - accepted / - tried

Implement Divide<A, B>

type A = Divide<1, 0> // nevertype B = Divide<4, 2> // 2type C = Divide<10, 3> // 3

Only need to consider non-negative integers.

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