我現在所知道的 DNS

為什麼我們需要 Domain Name System (DNS) ?

我們總是習慣的輸入某個特定網址(Domain Name),就能使用相關服務,這跟 DNS 又有什麼關係呢?

[閱讀全文]
DNS 

LeetCode - Remove Duplicates From Sorted Array(26)

26. Remove Duplicates From Sorted Array

Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same.

Since it is impossible to change the length of the array in some languages, you must instead have the result be placed in the first part of the array nums. More formally, if there are k elements after removing the duplicates, then the first k elements of nums should hold the final result. It does not matter what you leave beyond the first k elements.

Return k after placing the final result in the first k slots of nums.

Do not allocate extra space for another array. You must do this by modifying the input array in-place with O(1) extra memory.

[閱讀全文]
Array 

LeetCode - Duplicate Zero(1089)

1089. Duplicate Zeros

Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right.

Note that elements beyond the length of the original array are not written.

Do the above modifications to the input array in place, do not return anything from your function.

[閱讀全文]
Array 

Linux 檔案權限與目錄配置

為什麼我們會需要檔案權限呢?
因為 Linux 是一個多人多功的系統,有些檔案只希望在特定的範圍下暴露。
於是我們就需要一個系統來管理。

[閱讀全文]