摘要: Let's see how to do load balancing in Node.js. Before we start with the solution, you can do a test to see the ability concurrent requests your curren 阅读全文
posted @ 2019-03-08 22:51 Zhentiw 阅读(250) 评论(0) 推荐(0)
摘要: When build server, if we have a API endpoint requires some heavy calculation process, it will block the whole world. In this post, we will see how to 阅读全文
posted @ 2019-03-08 22:13 Zhentiw 阅读(314) 评论(0) 推荐(0)
摘要: /**@abstract * Write your own Math.pow(a int, b int) function * */ function pow (a, b) { let result = 0; let nigate = b = 2) { result = isEven ? pow(a, b / 2) * pow(a, b / 2) : a * pow(... 阅读全文
posted @ 2019-03-08 19:06 Zhentiw 阅读(195) 评论(0) 推荐(0)
摘要: cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair. For example, car(cons(3, 4)) returns 3, and 阅读全文
posted @ 2019-03-08 18:16 Zhentiw 阅读(305) 评论(0) 推荐(0)
摘要: Showing how to use 'uqrl' library to do GraphQL in React. 阅读全文
posted @ 2019-03-08 14:36 Zhentiw 阅读(370) 评论(0) 推荐(0)
摘要: Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive intege 阅读全文
posted @ 2019-03-08 02:56 Zhentiw 阅读(375) 评论(0) 推荐(0)