Review 的意义 需要提前说明:这篇谈论的 Review 并非是 Code Review,而是 ARTS 中的 Review。 陈皓老师曾在知乎上回答过一个问题:极客时间《左耳听风》发起的ARTS挑战怎么参加?,里面谈到了 Review 的动机: Review:主要是为了学习英文,如果你的英文不行,你基本上无缘技术高手。所以,需要你阅读并点评至少一篇英文技术文章,我个人最喜欢去的地方是Medium....
ARTS #89 Algorithm 本周选择的算法题是:Merge k Sorted Lists。 规则 You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-lis...
CPython 中的超级大锁 多才多艺的 Python 被应用在网络开发、机器学习、数据科学、数据工程、数据分析和人工智能等各个领域,以至于近些年总是可以在各种榜单的前排看到它的身影: Python 有如今的成就,全靠它易于使用、结构简单的特点,产生了极高的开发效率,越来越多的开发人员正在或开始使用它。 初识 GIL 即便如此,Python 还是有一些问题在社区里被反复提及,最典型的问题就是 Python 的执...
ARTS #88 Algorithm 本周选择的算法题是:Substring with Concatenation of All Words。 规则 You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that...
ARTS #87 Algorithm 本周选择的算法题是:Set Matrix Zeroes。 规则 Given an m x n matrix. If an element is 0, set its entire row and column to 0. Do it in-place. Follow up: A straight forward solution using O(m**n)...
博客性能优化 上次将博客托管到 Vercel 之后访问速度有了很大改善,于是就想深入做一些优化,这是本次优化过后 LightHouse 的评分: 除了性能改善,还修复了所有的 Accessibility 问题,我希望能最终构建出一个美观、简单、对 SEO 友好且快速的博客,下面就来说说本次优化的具体内容。 字体瘦身 图标库采用了 FontAwesome 5,完整的 FontAwesome 尺寸很...
ARTS #86 Algorithm 本周选择的算法题是:Minimum Path Sum。 规则 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path. N...
ARTS #85 Algorithm 本周选择的算法题是:Determine the Order。 规则 The Robots have found an encrypted message. We cannot decrypt it at the moment, but we can take the first steps towards doing so. You have a set of “w...
尝试 Vercel 最近在手机上访问 GitHub Page 时遇到完全打不开的情况,感觉已经无法忍受了。 上次尝试将 Jekyll 静态生成的内容同步到 Netlify 上,但没有取得太好的效果: 于是就想重新找个镜像站点,发现了 Vercel,部署好后效果很明显: Vercel 也是一个静态网站托管平台,支持 GitHub、GitLab、Bitbucket 以及一键导入,使用上和 Netlif...
ARTS #84 Algorithm 本周选择的算法题是:Search a 2D Matrix 规则 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted...