为什么苹果在 Xcode 14 中废弃了 Bitcode 苹果在 Xcode 14 里正式废弃了 Bitcode,从大肆推广到如今落幕,这些年的变化还是挺大的。我们从 Bitcode 的介绍开始说起,尝试探索苹果背后的想法。 什么是 Bitcode Bitcode 是 LLVM bytecode 文件格式,它其实隐含了两个东西: 用于承载 bitstream 的容器 LLVM IR 更通常的说法,是将 Bitcode 称为 LL... 2022-09-114 min read
ARTS #170 Algorithm 本周选择的算法题是:Average of Levels in Binary Tree。 规则 Given the root of a binary tree, return the average value of the nodes on each level in the form of an array. Answers within 10-5 of the ... 2022-09-035 min read
ARTS #169 Algorithm 本周选择的算法题是:Remove Duplicates from Sorted Array II。 规则 Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique element appears a... 2022-08-286 min read
ARTS #168 Algorithm 本周选择的算法题是:Split Array into Consecutive Subsequences。 规则 You are given an integer array nums that is sorted in non-decreasing order. Determine if it is possible to split nums into one ... 2022-08-205 min read
ARTS #167 Algorithm 本周选择的算法题是:Remove Element。 规则 Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed. Since i... 2022-08-146 min read
ARTS #166 Algorithm 本周选择的算法题是:Combination Sum IV。 规则 Given an array of distinct integers nums and a target integer target, return the number of possible combinations that add up to target. The test cases... 2022-08-076 min read
ARTS #165 Algorithm 本周选择的算法题是:Find and Replace Pattern。 规则 Given a list of strings words and a string pattern, return a list of words[i] that match pattern. You may return the answer in any order. A word... 2022-07-317 min read
ARTS #164 Algorithm 本周选择的算法题是:partition-list。 规则 Given the head of a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should prese... 2022-07-235 min read
ARTS #163 Algorithm 本周选择的算法题是:Max Area of Island。 规则 You are given an m x n binary matrix grid. An island is a group of 1’s (representing land) connected 4-directionally (horizontal or vertical.) You may ... 2022-07-167 min read
ARTS #162 Algorithm 本周选择的算法题是:Interleaving String。 规则 Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration wh... 2022-07-106 min read