前言 一般來說,程序運行的流程會是:從檔案或是使用者輸入(Input)資料經過程序的算法邏輯處理過,輸出相對應的結果。一般來說,程序語言都會提供I/O包供開發者...
接收器 Go方法是作用在接收器(receiver)上的一個函數,接收器是某種類型的變量,因此方法是一種特殊類型的函數。 接收器類型可以是任何類型,不只是結構體類...
前言 接續討論 debugging,今天來分析 launch.json 的組成。 預設結構 首先,來看看啟動偵錯模式後,vs code 預設的 launch.j...
目標:這題主要目的在於練習Two Pointer類型的問題應用。 原題: Question: Given an array nums of n integers...
interface 定義 type <Example> interface{ <method>() <rtype>...
目標:這題主要目的在於練習常見的字串比對處理。 原題: Question: Write a function to find the longest commo...