Symlinks on CocoaPods CocoaPods 是一个管理 Xcode 工程依赖的工具,其因为简单易用、功能覆盖广、拓展性强,成为了这个领域最常用的工具之一。不过想让工具完美适配各种 workflow 是不现实的,总归会有一些需要二次开发的东西,这一篇就是我们在实现环境切换时,如何利用它的特性达到最终目的的记录。 背景 Flutter 支持三种编译模式: debug - 开发时使用,支持 hot reloa... 2020-12-048 min read
ARTS #78 | 设计模式的背后 Algorithm 本周选择的算法题是:Generate Parentheses 规则如下: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example 1: Input: n = 3 Output: ["((()))"... 2020-11-283 min read
ARTS #77 | Start with Why Algorithm 本周选择的算法题是:Remove Nth Node From End of List 规则如下: Given the head of a linked list, remove the nth node from the end of the list and return its head. Follow up: Could you do this in one... 2020-11-214 min read
ARTS #76 | 关于生财日历 Algorithm 本周选择的算法题是:Sort Colors 规则如下: Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the or... 2020-11-144 min read
ARTS #75 | 回顾 monorepo Algorithm 本周选择的算法题是:Spiral Matrix II 规则如下: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: Input: 3 Output: [ [ 1, 2, 3 ], [ ... 2020-11-075 min read
ARTS #74 | 终于可以轻松管理 macOS 构建机了 Algorithm 本周选择的算法题是:Insert Interval 规则如下: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initial... 2020-10-317 min read
ARTS #73 | Programming Life Algorithm 本周选择的算法题是:Merge Two Sorted Lists 规则如下: Merge two sorted linked lists and return it as a new sorted list. The new list should be made by splicing together the nodes of the first two lis... 2020-10-2410 min read
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... 2020-10-175 min read
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... 2020-10-103 min read
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-10-033 min read