04 2021 档案

摘要:When you run hexo g, you might get the following error: call_and_retry_last allocation failed - javascript heap out of memory Solution: Try to run exp 阅读全文
posted @ 2021-04-26 02:50 Grandyang 阅读(221) 评论(0) 推荐(0) 编辑
摘要:We have a sequence of books: the i-th book has thickness books[i][0] and height books[i][1]. We want to place these books in order onto bookcase shelv 阅读全文
posted @ 2021-04-22 15:56 Grandyang 阅读(1082) 评论(2) 推荐(0) 编辑
摘要:When use nginx to configure https with ssl 443 port, it might be timed out, but your http 80 port work correctly. At this time, if you nginx configure 阅读全文
posted @ 2021-04-20 16:15 Grandyang 阅读(96) 评论(0) 推荐(0) 编辑
摘要:In an infinite binary tree where every node has two children, the nodes are labelled in row order. In the odd numbered rows (ie., the first, third, fi 阅读全文
posted @ 2021-04-15 15:55 Grandyang 阅读(484) 评论(0) 推荐(0) 编辑
摘要:Once you deployed the hexo with Nginx on your web instance, you might get the 403 forbidden error, try the following step to fix: Solution: Run vim /e 阅读全文
posted @ 2021-04-11 17:18 Grandyang 阅读(213) 评论(0) 推荐(0) 编辑
摘要:When you run hexo g on any web instances, like on AWS or Azure, you might get the following error: (node:3568) ExperimentalWarning: The fs.promises AP 阅读全文
posted @ 2021-04-11 10:07 Grandyang 阅读(149) 评论(0) 推荐(0) 编辑
摘要:We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to t 阅读全文
posted @ 2021-04-09 16:24 Grandyang 阅读(558) 评论(0) 推荐(0) 编辑
摘要:Under a grammar given below, strings can represent a set of lowercase words. Let's use R(expr) to denote the set of words the expression represents. G 阅读全文
posted @ 2021-04-07 14:32 Grandyang 阅读(916) 评论(0) 推荐(0) 编辑
摘要:(This problem is an interactive problem.) You may recall that an array A is a mountain array if and only if: A.length >= 3 There exists some i with 0 阅读全文
posted @ 2021-04-04 16:10 Grandyang 阅读(828) 评论(0) 推荐(0) 编辑
摘要:When running hexo server, you might get the following error: console.js:35 throw new TypeError('Console expects a writable stream instance'); ^ TypeEr 阅读全文
posted @ 2021-04-03 15:05 Grandyang 阅读(865) 评论(0) 推荐(0) 编辑
摘要:Sometimes your hexo environment may get fucked up, may give you the following errors: ERROR Local hexo not found in /YourProjectPath/ ERROR Try runnin 阅读全文
posted @ 2021-04-03 13:56 Grandyang 阅读(167) 评论(7) 推荐(0) 编辑
摘要:You are driving a vehicle that has capacity empty seats initially available for passengers. The vehicle only drives east (ie. it cannot turn around an 阅读全文
posted @ 2021-04-02 13:04 Grandyang 阅读(1131) 评论(1) 推荐(0) 编辑
摘要:You are given a large sample of integers in the range [0, 255]. Since the sample is so large, it is represented by an array count where count[k] is th 阅读全文
posted @ 2021-04-01 15:33 Grandyang 阅读(517) 评论(0) 推荐(0) 编辑

Fork me on GitHub