21k words 19 mins.

# Introduction Design and implementation of assemblers Some common fundamental functions such as: translating mnemonic operation codes to their machine language equivalents assigning machine addresses to symbolic labels used by the programmer. The features and design of an assembler depend...
700 words 1 mins.

# 題目敘述 Given an integer num , repeatedly add all its digits until the result has only one digit, and return it. # Example 1 Input: num = 38 Output: 2 Explanation: The process is 38 --> 3 + 8 --> 11 11 --> 1 + 1 --> 2 Since 2 has only one digit, return it. # Example...
6.5k words 6 mins.

# Backtracking Backtracking,枚舉多維度數值的方法。 運用遞迴依序窮舉各個維度的數值,製作所有可能的多維度數值,並且在遞迴途中避免枚舉不正確的多維度數值。 Backtracking is a modified depth-first search of a tree (DFS). # Promising1 & Nonpromising A node is Nonpromising if it cannot possibly lead to a solution. Otherwise, Promising. #...
395 words 1 mins.

# 環境設定及套件安裝 : Anaconda Anaconda 是適合資料科學工作者的開發套件管理系統,針對 Python 使用者提供簡單的安裝與豐富的套件。 Anaconda 包含了 Python 的實作環境,以及與網路爬蟲、資料分析、資料視覺化、機器學習相關的多種套件,如網路爬蟲最常使用到的套件 Requests 與 BeautifulSoup ,資料分析與視覺化套件 Pandas 與 Matplotlib ,自然語言處理套件 nltk 與 spaCy ,機器學習與深度學習套件 scikit-learn 與 TensorFlow 等,都可以透過 Anaconda...
2.4k words 2 mins.

⭐️⭐️ # 題目敘述 You have a set which contains all positive integers [1, 2, 3, 4, 5, ...] . Implement the SmallestInfiniteSet class: SmallestInfiniteSet() Initializes the SmallestInfiniteSet object to contain all positive integers. int popSmallest() Removes and returns the smallest integer contained in...
5.1k words 5 mins.

Appendix A High Level Language 的部分是 pseudo-code 僅能代表大概相同的邏輯 不保證這段 code 編譯成組合語言會和範例完全一樣 判斷 format 的方法 Relative Addressing: 必為 format 3 Immediate Addressing: 看常數大小 因為 format 3 的 disp 欄位有 12 bits,僅能表示 −212-2^{12}−212 ~ 212−12^{12}-1212−1 Memory Access: 通常是 format 3 Operation 前有加號:通常是 format...
1.9k words 2 mins.

⭐️⭐️⭐️ # 題目敘述 A program was supposed to print an array of integers. The program forgot to print whitespaces and the array is printed as a string of digits s and all we know is that all integers in the array were in the range [1, k] and there are no leading zeros in the array. Given the string s and...
1.7k words 2 mins.

⭐️ # 題目敘述 You are given an array of integers stones where stones[i] is the weight of the ith stone. We are playing a game with the stones. On each turn, we choose the heaviest two stones and smash them together. Suppose the heaviest two stones have weights x and y with x <= y . The result of...
20k words 18 mins.

# Introduction Computer System Hardware Software Software Application software (domain knowledge) System software (machine architecture) System software consists of a veriety of programs that support the operation of a computer. Text editor, assembler, macro processor, compiler, loader,...