摘要:
The idea to solve the problem is set five variable, first direction, we need to switch direction after we finish printing one row or one column. Then 阅读全文
摘要:
Here we refactor a React TypeScript class component to a function component with a useState hook and discuss how props and state types can be modeled 阅读全文
摘要:
Because @types/react has to expose all its internal types, there can be a lot of confusion over how to type specific patterns, particularly around hig 阅读全文
摘要:
Imaging we have a deck of cards, eveytimes we need to pick one card from deck, the result we want to have is: For selected, each time we want only one 阅读全文
摘要:
Give you set of meetings start time and end time, count how many meeting rooms needed. For example: We can use a memo table to store the at which time 阅读全文
摘要:
If we pushed our changes already to the remote repository we have to pay attention to not change the git history (using commands like rebase, reset, a 阅读全文
摘要:
When you accidentally committed some changes to your branch you have various possibilities to “undo” that operation and add some more changes. One is 阅读全文
摘要:
Using Naive JS: The main problem is inside 'rando' function, not really a FP way doing stuff. Arrow approach: It becomes complex with we need to do Pa 阅读全文