2020 Q3 阅读笔记 这个季度看了三本书: 《软件架构设计》 《iOS 应用逆向与安全之道》 《计算机系统导论》 下面分别谈谈自己的看法。 《软件架构设计》 这本书给我带来了一些新的认知,加深了我对架构的理解,同时介绍了很多实用的工具,干货满满,其中给我感触最大的是: 有没有经验,决定你能不能成为架构师 有没有方法,决定一个架构师能走多远 早先写了一篇关于它的读后感,传送门。 ...
ARTS #69 | Netlify 镜像 Algorithm 本周选择的算法题是:Best Time to Buy and Sell Stock 规则如下: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most ...
ARTS #68 | 持续成长 Algorithm 本周选择的算法题是:Merge Intervals 规则如下: Given a collection of intervals, merge all overlapping intervals. Example 1: Input: intervals = [[1,3],[2,6],[8,10],[15,18]] Output: [[1,6],[8,10],[15...
ARTS #67 | 很酷的灯光效果 Algorithm 本周选择的算法题是:Jump Game II 规则如下: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum j...
ARTS #66 | pdb Algorithm 本周选择的算法题是:Remove Invalid Parentheses 规则如下: Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input strin...
ARTS #65 | 编程很复杂 Algorithm 本周选择的算法题是:Sum of Square Numbers 规则如下: Given a non-negative integer c, your task is to decide whether there’re two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: ...
Swift: weak 的 strong 时机 前言 早前在Swift 内存管理中整理过一张思维导图,当时主要是通过官方资料和前人的经验得出的结论,不过内心里有2个疑问一直没有得到答案: Swift 的 weak 变量会在使用前尝试 +1 strong,但是具体的时机是什么时候呢? Objective-C 中的 Weak-Strong Dance 在 Swift 中是否还需要? 今天就通过...
ARTS #64 | 善战者无赫赫之功 Algorithm 本周选择的算法题是:Rearrange Words in a Sentence 规则如下: Given a sentence text (A sentence is a string of space-separated words) in the following format: First letter is in upper case. Each...
更新 CodingTour 最近对个人网站做了一次更新,主要做了这么几件事: 优化 CSS: 支持 Dark Mode 新的 Logo 优化 CSS 现在的这套 CSS 代码自去年建站以来就没怎么动过,文件既没有压缩,还充斥着各种尝试、注释和临时的解决方案。这次想通过对一些工具的使用来指导自己改善代码,我选择了两个工具: Chrome Lighthouse - 对网站生成性能、SEO 等报...
ARTS #63 | 早就是优势 Algorithm 本周选择的算法题是:Count of Smaller Numbers After Self 规则如下: You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is ...