Lunski's Clutter

This is a place to put my clutters, no matter you like it or not, welcome here.

0%

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
2
3
Input: n = 2
Output: [1,1]
Explanation: A = 1, B = 1. A + B = n and both A and B don't contain any 0 in their decimal representation.

Example 2:

1
2
Input: n = 11
Output: [2,9]

Example 3:

1
2
Input: n = 10000
Output: [1,9999]

Example 4:

1
2
Input: n = 69
Output: [1,68]

Example 5:

1
2
Input: n = 1010
Output: [11,999]
Read more »

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
2
3
Input: nums = [1,2,3,4]
Output: [1,3,6,10]
Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4].

Example 2:

1
2
3
Input: nums = [1,1,1,1,1]
Output: [1,2,3,4,5]
Explanation: Running sum is obtained as follows: [1, 1+1, 1+1+1, 1+1+1+1, 1+1+1+1+1].

Example 3:

1
2
Input: nums = [3,1,2,10,1]
Output: [3,4,6,16,17]
Read more »

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
2
Input: "A"
Output: 1

Example 2:

1
2
Input: "AB"
Output: 28

Example 3:

1
2
Input: "ZY"
Output: 701
Read more »

《清初蘇州崑劇劇壇研究》是胞兄寫的書,有興趣歡迎到以下連結。

Read more »

Google是我很景仰的公司,本業瀏覽器,搜尋引擎,Gmail跟地圖都非常方便,雲端硬碟裡各個office軟體,colab也成了我每天必須使用的工具,而GCP,Youtube則是工作跟學各種課程必備工具,每當使用時總會好奇這家公司為什麼可以做到這些,為了瞭解這家公司文化跟處世方法,我決定開始閱讀Google。

Read more »