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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:(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
阅读全文
摘要:When running hexo server, you might get the following error: console.js:35 throw new TypeError('Console expects a writable stream instance'); ^ TypeEr
阅读全文
摘要:Sometimes your hexo environment may get fucked up, may give you the following errors: ERROR Local hexo not found in /YourProjectPath/ ERROR Try runnin
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文