ARTS #24 Algorithm 本周选择的算法题是:4Sum 规则如下: Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in...
ARTS #23 Algorithm 本周选择的算法题是:Search Insert Position 规则如下: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted ...
ARTS #22 Algorithm 本周选择的算法题是:Longest Valid Parentheses 规则如下: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example ...
ARTS #21 Algorithm 本周选择的算法题是:Remove Duplicates From Sorted Array 规则如下: Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not...
ARTS #20 Algorithm 本周选择的算法题是:3Sum Closest 规则如下: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three in...
ARTS #19 Algorithm 本周选择的算法题是:Container With Most Water 规则如下: Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the tw...
ARTS #18 Algorithm 本周选择的算法题是:Subarrays with K Different Integers 规则如下: Given an array A of positive integers, call a (contiguous, not necessarily distinct) subarray of A good if the number of different i...
基于 TeamCity 的 CI 集成过程记录 目前在 TeamCity 上完成的集成有: PR 接入 checks 单元测试的自动化执行 集成代码覆盖率报告 集成测试报告 过程思考 PR 接入 checks TeamCity 自带的插件就支持:https://www.jetbrains.com/help/teamcity/pull-requests.html 单元测试的自动化执行 iOS 开发下的单元测试...
ARTS #17 Algorithm 本周选择的算法题是:Smallest Range I 规则如下: Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some a...
关于坑位曝的光检测方案 需求简述 用户曝光模板后触发,曝光需要满足以下条件: 1、在屏幕展示大于等于2/3被曝光对象; 2、在屏幕的停留时间大于等于1.5秒; 3、一个页面对于同一个内容仅曝光一次。仅当重新进入页面后会继续上报。 技术拆解 对“同一个页面”的定义 栈中的 UIViewController、Activity 是同一个实例 同一个页面内不需要重新曝光的动作: ...