46. implement Subtract<A, B>
分享给更多人
-通过 / -执行
Similar to 38. implement Add<A, B>,
please implement Subtract<A, B>
.
- only need to consider positive integers
- B is guaranteed to be smaller or equal to A
type A = Subtract<1, 1> // 0type B = Subtract<10, 3> // 7type C = Subtract<3, 10> // never