ARTS #72 | 岂因秋风吹复落,便任枯叶满阶庭? Algorithm 本周选择的算法题是:Jump Game 规则如下: 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 jump...
ARTS #71 | 虚拟化 Algorithm 本周选择的算法题是:Subsets 规则如下: Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Example: Inpu...
ARTS #70 | typing Algorithm 本周选择的算法题是:Spiral Matrix 规则如下: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Input: [ [ 1, 2, 3 ], [ 4, 5, 6 ],...
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 中是否还需要? 今天就通过...