Skip to content

chrisirhc/advent-of-typescript-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solutions to https://typehero.dev/aot-2023 .

Plans

  • Study other solutions and see if I can improve mine and review gaps, note differences.

Solutions to study:

  • 03: Uses TSomething for longer readable generic type variable names.
  • 05: Used ReadonlyArray
  • 12: TkDodo's algorithm is simpler.
  • 13: Indeed my method was brute-force. I used a combination of addition and recursion to get a full list. I guess the method I thought of was similar to what others came up with. The use of Acc[number] is simpler, and the use of Exclude is cleaner. The use of recursion is restricted to only the Fill, which is simpler and easier to read.
  • 14: I've got a cleaner solution here :)
  • 16: Predicate<T> extends infer Result as a way to save a variable. Great use of Mapped types to do a search for Santa on the rows then retrieve it via [number], relying on never being not returned in the results. Find column method is the same algorithm.
  • 17: This solution is much simpler and cleaner than mine. I can definitely simplify my solution further.

Others not yet studied

Changelog

2024-01-09

  • Study some more TkDodo solutions
  • Realized I didn't update my solution for 18. Updated it.

2024-01-07

  • Add some plans and changelog
  • Add some notes from reading first 5 TkDodo solutions.

2023-01-06

  • Finished on Jan 6 2024.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published