ARTS #79 Algorithm 本周选择的算法题是:Swap Nodes in Pairs 规则如下: Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list’s nodes. Only nodes itself may be...
Symlinks on CocoaPods CocoaPods 是一个管理 Xcode 工程依赖的工具,其因为简单易用、功能覆盖广、拓展性强,成为了这个领域最常用的工具之一。不过想让工具完美适配各种 workflow 是不现实的,总归会有一些需要二次开发的东西,这一篇就是我们在实现环境切换时,如何利用它的特性达到最终目的的记录。 背景 Flutter 支持三种编译模式: debug - 开发时使用,支持 hot reloa...
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: ["((()))"...
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...
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...
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 ], [ ...
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...
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...
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...