上一页 1 ··· 259 260 261 262 263 264 265 266 267 ··· 498 下一页
摘要: PureScript types are very extensive and we are going to experiment with type constructors and how to make then use them. We can define a custom data t 阅读全文
posted @ 2019-03-30 23:54 Zhentiw 阅读(147) 评论(0) 推荐(0)
摘要: Algorithm or program to check for balanced parentheses in an expression using stack data structure. For example: The idea to solve the problem is: ope 阅读全文
posted @ 2019-03-30 23:34 Zhentiw 阅读(220) 评论(0) 推荐(0)
摘要: JavaScript does its error-checking at runtime, but PureScript has a compiler, which makes sure that your program has no errors before it converts it a 阅读全文
posted @ 2019-03-29 21:07 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: For example we have a function to check the filesize: It works fine, but the 'fileSize' function has a problem, those part of code run in sync, not as 阅读全文
posted @ 2019-03-28 21:40 Zhentiw 阅读(280) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-03-28 03:23 Zhentiw 阅读(299) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-03-27 21:00 Zhentiw 阅读(424) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-03-27 20:45 Zhentiw 阅读(1039) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-03-27 19:17 Zhentiw 阅读(195) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-03-27 02:03 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2019-03-26 20:54 Zhentiw 阅读(279) 评论(0) 推荐(0)
上一页 1 ··· 259 260 261 262 263 264 265 266 267 ··· 498 下一页