100 周纪念 不知不觉 ARTS 做到 100 周了,作为一个重要的里程碑事件,我想记录两点自己最近的思考: 如何坚持 关于成长与目标 如何坚持 过去这段时间,我把 ARTS 当成一项正式的作业来做,如何把它长期坚持下去一直是我在不断思考的问题。我相信自己有在工作或生活中长期做好一件事的能力,除了毅力和耐心之外,还有两个重要的套路作为辅助: 持续得到反馈 把过程变得简单 ...
ARTS #99 Algorithm 本周选择的算法题是:Largest Number。 规则 Given a list of non-negative integers nums, arrange them such that they form the largest number. Note: The result may be very large, so you need to return...
一个面试技巧 本周出差至周末才回,期间参与了一场专场招聘活动,发现自己的一个技巧对面试官很实用,分享一下~ 我们都知道面试是双方沟通、双向选择的过程,好的面试就是一次愉悦的技术交流,面试官需要学会控制面试的节奏。在我过往的经历中,我发现有部分面试官会对结束时的反问环节感到一丝丝恐惧: “我的问题问完了,请问你有什么想问我的吗” 反问环节能极大加强候选人的面试体验,但这个环节有时候也会充满各种...
ARTS #98 Algorithm 本周选择的算法题是:Merge Two Binary Trees。 规则 You are given two binary trees root1 and root2. Imagine that when you put one of them to cover the other, some nodes of the two trees are overlapp...
上线「站内搜索」 这周为博客增加了「站内搜索」功能,算是解决了自己搜索不便的一大痛点。 最开始打算实现像 vuepress2 那样看起来很酷的效果,它的服务提供商是 algolia,虽然有免费的版本,但限制很多,需要自己生成索引文件、手动上传至 algolia 的服务器、有搜索限额,最重要的是整个过程不能完全自动化(除非花钱),只得放弃。 后来想到利用 Jekyll 的文件处理流程,其实可以很容易的实时生...
ARTS #97 Algorithm 本周选择的算法题是:Linked List Cycle。 规则 Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the l...
分享一本词典: AHD AHD - 美国传统词典 AHD(American Heritage Dictionary) 是我在 macOS 下使用多年的词典,它的主要功能有: 强大英英解释功能 词性释义丰富 有语源,更容易理解它的词根 示例 love love [lʌv] ■n.(名词) ▪A deep, tender, ineffable feeling of affection and...
ARTS #96 Algorithm 本周选择的算法题是:largest Rectangle in Histogram。 规则 Given an array of integers heights representing the histogram’s bar height where the width of each bar is 1, return the area of the largest...
2021 Q1 阅读记录 从去年开始对阅读做了些优化: 增加碎片时段阅读的时长 扩大阅读书籍的边界 根据书中内容调整阅读方式 优化后的效果还是很明显,今年的 Q1 就读了四本书。 发现心流 这是一本论述性的书,它的内核是: 探索人类快乐的本质,分析了人在不同的活动、环境、人际关系及受外在因素的影响下,对自身感受会造成的潜在影响。并说明了要在行为与思想上应当如何去做,才能乐在其中又或是苦...
ARTS #95 Algorithm 本周选择的算法题是:Minimum Window Substring。 规则 Given two strings s and t, return the minimum window in s which will contain all the characters in t. If there is no such window in s that covers...