摘要: Let's say we are given an array: We want to get K = 3 smallest items from the array and using Max heap data structure. So this is how to think about i 阅读全文
posted @ 2019-03-05 22:38 Zhentiw 阅读(187) 评论(0) 推荐(0)
摘要: Shadow DOM is part of the web components specification. It allows us to ship self contained components along with their style and isolate the componen 阅读全文
posted @ 2019-03-05 19:39 Zhentiw 阅读(286) 评论(0) 推荐(0)
摘要: Forms in React are not easy. T hey are verbose and several lines of code. However, forms with Formik are much simpler. Formik maintains the state of i 阅读全文
posted @ 2019-03-05 19:33 Zhentiw 阅读(219) 评论(0) 推荐(0)
摘要: You probably have functions that aren’t equipped to accept a Maybe as an argument. And in most cases, altering functions to accept a specific containe 阅读全文
posted @ 2019-03-05 17:28 Zhentiw 阅读(254) 评论(0) 推荐(0)
摘要: We can dot-chain our way to great success with an instance of Maybe, but there are probably cases where you need to apply the same series of transform 阅读全文
posted @ 2019-03-05 17:15 Zhentiw 阅读(434) 评论(0) 推荐(0)
摘要: Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original ar 阅读全文
posted @ 2019-03-05 02:35 Zhentiw 阅读(128) 评论(0) 推荐(0)
摘要: For example there is a staricase N = 3 | | | | | | | | | | There is N = 3 staricase, for each step, you can either take {1 or 2} step at a time. So as 阅读全文
posted @ 2019-03-05 01:36 Zhentiw 阅读(191) 评论(0) 推荐(0)