ARTS #147 Algorithm 本周选择的算法题是:Two City Scheduling。 规则 A company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the ith person to city a is ...
ARTS #146 Algorithm 本周选择的算法题是:Validate Stack Sequences。 规则 Given two integer arrays pushed and popped each with distinct values, return true if this could have been the result of a sequence of push and po...
ARTS #145 Algorithm 本周选择的算法题是:Add Two Numbers。 规则 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains ...
ARTS #144 Algorithm 本周选择的算法题是:Is Subsequence。 规则 Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the o...
ARTS #143 Algorithm 本周选择的算法题是:Clone Graph。 规则 Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains a value (int) and a li...
OKR 背后的思考框架 说一个我们容易犯的错 — 刚接触 OKR 时,容易把 OKR 写成任务清单。这是绝对错误的,这个阶段要改进的核心不是 OKR 要如何写,而是要明确自己中长期的价值和短期目标。 任务清单的本质问题是想到什么做什么。就像人肉手动的工厂一样,当面对大量订单的时候,一个简单粗暴的方法就是拼命地加人和拼命地工作来换取更大的生产力,只有当人手实在不够或是人力成本高到不可接受的极端情况下,才会去想是不是...
ARTS #142 Algorithm 本周选择的算法题是:Remove K Digits。 规则 Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num. Exampl...
ARTS #141 Algorithm 本周选择的算法题是:Pairs of Songs With Total Durations Divisible by 60。 规则 You are given a list of songs where the ith song has a duration of time[i] seconds. Return the number of pairs of son...
ARTS #140 Algorithm 本周选择的算法题是:Running Sum of 1d Array。 规则 Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: In...
记录我的 2021 前言 2021 年大体可以分为三部分来总结: 学习 阅读 生活 学习部分主要是 ARTS、LeetCode、工作思考和一些打卡事项;阅读部分是由于今年读了15本书,想单独拿一章出来总结;生活部分就是一些日常琐事了。 学习 ARTS 今年写了 52 期,ARTS 共完成了 134 期,回想 ARTS 的初衷有两个原因: 了解业界的发展趋势 提高成长的...