[DSA] Longest Palindromic Substring | Dynamic Programming

Longest Palindromic Substring Leetcode: 5. Longest Palindromic Substring My solution: kaka-lin/leetcode/00005_longest-palindromic-substring The detail of explain of solution please see as below. 思路與解法說明請看下面。 Question Given a string s, return the longest palindromic substring in s Example 1: Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output: "bb" Constraints: 1

[Docker] 容器與虛擬機

Docker - 容器 (Container) 與虛擬機 (VM) 簡單來說: 虛擬機 (Virtual Machine) 以作業系統為中心 容器 (Container) 以應用程式為中心 Container VM 應用程式為單位 作業系統為單位 依賴 Host OS 的 kernel 任意 Guest OS 封裝應用程

[Python] 負數取餘數

Python 負數取餘數 在 Python 中,取餘數的公式與其他語言一樣為: r = a - n * [a // n] 其中 r 表示餘數,a 是被除數,n 是除數。 在快上面公式前須先了解 // 在 Python 中的特