You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Help 🎩Bernard before 🎅Santa continues his violent tirade.
25
25
*
26
+
* Help 🎩Bernard before 🎅Santa continues his violent tirade. He's not about to spend a bunch of time looking at each child so instead he's just deciding whether a child is naughty or nice based on the number of characters in their name!
27
+
*
26
28
* A HUGE hint
27
29
*
28
30
* Part of the fun/trick of this challenge is that you can't solve it normally by iterating because you'll get:
@@ -84,14 +86,14 @@ type NaughtyOrNice = {
84
86
};
85
87
86
88
type FormatNames<T extends string[][]> = {
87
-
[I in keyof T]: T[I] extends [infer Name extends string, infer Rating extends string, infer Count extends string]
89
+
[K in keyof T]: T[K] extends [infer Name extends string, string, infer Count extends string]
0 commit comments