48. implement Divide<A, B>

TypeScript

  - accepted / - tried

Implement Divide<A, B>


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

Only need to consider non-negative integers.

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