[LeetCode] Single Number

摘要: 題目 Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear ru 阅读全文
posted @ 2019-03-08 02:33 seako 阅读(139) 评论(0) 推荐(0) 编辑

[個人紀錄] WindowsLiveWriter 插入代碼跳出錯誤

摘要: 跳出找不到設定檔Can’t load configruaration fromC:\Users\…\AppData\Roaming\Windows Live Writer\WindowsLiveWriter.SourceCode.config只要繼續點確定,一樣可以進入插入代碼的視窗中再點選Opti 阅读全文
posted @ 2017-08-23 10:58 seako 阅读(138) 评论(0) 推荐(0) 编辑

[LeetCode] - Longest Substring Without Repeating Characters

摘要: 題目:找出最長的不重複子字串 My Solution 流程 個人解法,研究別人更好的解法中,請參考。 阅读全文
posted @ 2017-07-21 10:27 seako 阅读(131) 评论(0) 推荐(0) 编辑

[LeetCode] - Add Two Numbers

摘要: 題目連結 Problem. 就是用link list(鏈表)反向表達兩個正整數,執行相加 342 + 465 就變成題目範例那樣反自表達成 2 4 3 跟 5 6 4 solution.(以單向鏈表) 流程圖 參考看看 阅读全文
posted @ 2017-06-23 13:50 seako 阅读(132) 评论(0) 推荐(0) 编辑

[LeetCode] - Two Sum

摘要: Two Sum 題目連結 官網題目說明: 解法: 從給定的一組值內找出第一組兩數相加剛好等於給定的目標值,暴力解很簡單(只會這樣= =),兩個迴圈,只要找到相加的值就跳出。 另題目內有討論時間複雜度表現較為優秀的解法,也一併實作看看。 此為兩步驟(two pass)hashtable,先將給定值放入 阅读全文
posted @ 2017-01-03 14:21 seako 阅读(253) 评论(0) 推荐(0) 编辑