Namchee @namchee.dev · Dec 12

Day 12, a few hints: 1. Array is an object, so you can iterate it as you would iterate mapped types, which doesn't have stack overflow issues 2. The elements are a tuple, so you can quickly access the members by their indexes. 3. You can extract the numerical value by infering the numeric string.

0 likes 1 replies

?

Replies

Namchee · Dec 13

Day 13, this one is a bit difficult as we need to understand covariant and contravariant of TypeScript. To enforce an invariant, we need to apply `out` to enforce contravariance and `in` to enfore covariance to the generic type.