iLeafy11

@qJEZpNvuSHe0kzJAmMSeQg

Joined on Feb 23, 2021

  • contributed by < iLeafy11 > :::danger 終於生病生完了,從今天開始,每天都來寫!!!!!! ::: 開發環境 新電腦安裝 Ubuntu 22.04 遇到 Failed to start Ubuntu live CD Installer,嘗試過各種方法,對於我來說,目前暫時無解,所以先使用 WSL。 安裝 WSL for Microsoft Windows 11 遇到問題時,可以參考: Troubleshooting Windows Subsystem for Linux,解決問題。
     Like  Bookmark
  • contributed by < iLeafy11 > timsort run_size 與 find_run,利用 struct list_head 結構巧妙的節省記憶體空間。 head->next->pre = (struct list_head *) len; 同時,因為 timsort 同時需要利用一個 stack 來儲存 find_run 找出來的這些 runs。所以可以利用 struct list_head * 的 Doubly Linked List 的特性,將 find_run 過後沒有用到的 prev 指標拿來作為連結這些 runs 的 head 的 stack list 指標來使用。 TODO: 裡用 len 來達到題目敘述的改進方式
     Like  Bookmark
  • 作業內容 Github 作業區 (HackMD / Github) :::info :exclamation: 無論標題和內文,中文和英文字元之間要有空白字元 (對排版和文字搜尋有利);文字訊息請避免用圖片來表示,否則不好搜尋和分類。 :notes: 「開發紀錄」的 HackMD 網址應該要用「固定網址」,也就是如 https://hackmd.io/@itsme/XXXX 的形式,設定公開發表並允許已登入者進行編輯,請留意!
     Like  Bookmark
  • Tribute to: < jserv > 作業說明 list.h 改寫自:Linux/list.h 的實作。利用 struct list_head 資料結構,建構一個巧妙的 circular doubly linked-list, struct list_head { struct list_head *prev, *next; };
     Like 1 Bookmark
  • (The Thirteen Commandments for Newbie C Programmers) contributed by < Khoguan Phuann > Shamlessly copy from ptt.cc BBS - C_and_CPP :::warning 請注意: 本篇旨在提醒新手,避免初學常犯的錯誤(其實老手也常犯 :-Q)。但不能取代完整的學習,請自己好好研讀一兩本 C 語言的好書,並多多實作練習。 以下所舉的錯誤例子如果在你的電腦上印出和正確例子相同的結果,那只是不足為恃的一時僥倖。
     Like 4 Bookmark