Objectives and Key Results(OKR)是Google績效考核的一環,我們熟知的Key Performance Indicator(KPI)是上對下,OKR主張讓員工自動自發,這篇文章主要在介紹各種績效標準,這也是我回公司讀的第一本書。
1317. Convert Integer to the Sum of Two No-Zero Integers
Given an integer n. No-Zero integer is a positive integer which doesn’t contain any 0 in its decimal representation.
Return a list of two integers [A, B] where:
A and B are No-Zero integers.
A + B = n
It’s guarateed that there is at least one valid solution. If there are many valid solutions you can return any of them.
Example 1:
1 | Input: n = 2 |
Example 2:
1 | Input: n = 11 |
Example 3:
1 | Input: n = 10000 |
Example 4:
1 | Input: n = 69 |
Example 5:
1 | Input: n = 1010 |
1480. 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:
1 | Input: nums = [1,2,3,4] |
Example 2:
1 | Input: nums = [1,1,1,1,1] |
Example 3:
1 | Input: nums = [3,1,2,10,1] |
171. Excel Sheet Column Number
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
1 | Input: "A" |
Example 2:
1 | Input: "AB" |
Example 3:
1 | Input: "ZY" |