楊敦富

@DokiDokiPB

Joined on May 3, 2020

  • (正在嘗試移植中) 目前進度: 移植到 Executorch CoreML Backend 對話會重複輸入文字,在 iPhone 16 pro 上無法輸入較長 >100 文字,記憶體不足。 虛擬機 iPhone 大約用掉 6.9 GB,會重複輸入文字。 使用 Executorch Llama 編譯程式可以正常執行在 Macbook Air M1 16 GB 上 聯發科於 2025 年初釋出他們調整過的 Llama 3.2 模型,上傳至 huggingface。MediaTek 提供部分必要的檔案,.pte 跟 tokenizer.bin 檔案。 Meta 的 llama 提供更多檔案,例如 safetensor,並且 MLX-Example 已經提供 llama 轉換格式的程式碼、MLX-Swift-Example 移植到 iOS 平台上,可以使用 mlx-swift-example repository,搭配 Apple Silcon 一次支援 M1 與 iOS 系統。 pte 檔案可以使用 Executorch 跟它提供的專案,移植到 iOS 上使用。
     Like  Bookmark
  • 日期 2024/12/22 第三題沒時間想出來,討論區是使用 binary search 猜一個數字,並驗證這個數字是否可行。 Minimum Number of Operations to Make Elements in Array Distinct Maximum Number of Distinct Elements After Operations Smallest Substring With Identical Characters I Smallest Substring With Identical Characters II 第一題
     Like  Bookmark
  • 日期 2024/11/10 LeetCode 出題模式有些改變,原本題目通常是 EMMH,現在會變成 E(M)MHH。 Adjacent Increasing Subarrays Detection I Adjacent Increasing Subarrays Detection II Sum of Good Subsequences Count K-Reducible Numbers Less Than N 第一題 bool hasIncreasingSubarrays(vector<int>& nums, int k) {
     Like  Bookmark
  • 日期 2024/10/27 第四題有個 t <= 10^9 的限制,當下沒想出來。結果查看討論區有人化為矩陣運算解題,看到提示字矩陣我大概就知道怎麼解了。 Find the Maximum Factor Score of Array Total Characters in String After Transformations I Find the Number of Subsequences With Equal GCD Total Characters in String After Transformations II 第一題
     Like  Bookmark
  • 日期 2024/08/04 只有寫出第一與第二題。這次太晚起床去撰寫題目,來不及改完 Design Neighbor Sum Service Shortest Distance After Road Addition Queries I Shortest Distance After Road Addition Queries II Alternating Groups III 第一題 vector<vector<int>> grid;
     Like  Bookmark
  • 日期 2024/07/21 這次做滿第三題,第三題似曾相識,好像在與 LeetCode 某題內容相同。 第四題來不及看,難度約為 Medium+ Number of Bit Changes to Make Two Integers Equal Vowels Game in a String Maximum Number of Operations to Move Ones to the End Minimum Operations to Make Array Equal to Target 第一題
     Like  Bookmark
  • 日期 2024/07/14 這次第三題與第四題一樣,差別在於回傳的型態,我在做完第三題的時候直接複製貼上程式碼到第四題,導致當下找不到錯誤。結果只有做完三題。 Lexicographically Smallest String After a Swap Delete Nodes From Linked List Present in Array Minimum Cost for Cutting Cake I Minimum Cost for Cutting Cake II 第一題
     Like  Bookmark
  • 日期 2024/07/07 這次題目水水的,很快就做出第一、二、三題目,第四題是一個 DP + Trie 變形題目,當下沒做出來。 Find the Encrypted String Generate Binary Strings Without Adjacent Zeros Count Submatrices With Equal Frequency of X and Y Construct String with Minimum Cost 第一題 string getEncryptedString(string s, int k) {
     Like  Bookmark
  • 日期 2024/06/30 第二題與第三題只差在餘數 k 而已,使得第二題可以用簡單的解法,結果我反而卡在第二題,超過中午才解出來。 第三題是 Dynamic Programming 題目,就是很普通的題目。解題的時候 DP table 初始條件設錯導致除錯很久。 Maximum Height of a Triangle Find the Maximum Length of Valid Subsequence I Find the Maximum Length of Valid Subsequence II Find Minimum Diameter After Merging Two Trees
     Like  Bookmark
  • 日期 2024/06/23 目前可以穩定第一跟第二題,第三題大致上就是 Blind 75 基本題。不過我總是想不出來啊哈哈, Dynamic Programming 好難喔。 Minimum Average of Smallest and Largest Elements Find the Minimum Area to Cover All Ones I Maximize Total Cost of Alternating Subarrays Find the Minimum Area to Cover All Ones II 第一題 double minimumAverage(vector<int>& nums) {
     Like  Bookmark
  • 日期 2024/06/16 這次只有作到第二題,第三題可以看出是 Dynamic Programming,但是無從下手。 Count Pairs That Form a Complete Day I Count Pairs That Form a Complete Day II Maximum Total Damage With Spell Casting Peaks in Array 第一題 int countCompleteDayPairs(vector<int>& hours) {
     Like  Bookmark
  • 日期 2024/06/02 LeetCode 週賽網站變得不穩定,介面跳了兩次。 這次做了前三題題目,最後一題沒想出來,根據討論區的解法,比想像中簡單很多。 該解題達人在 LinkedIn 有創立解題與面試社團,順手就加入該社團。 Minimum Number of Chairs in a Waiting Room Count Days Without Meetings Lexicographically Minimum String After Removing Stars Find Subarray With Bitwise AND Closest to K
     Like  Bookmark
  • 日期 2024/05/19 我很難靜下心來寫,等靜下心來後發現題目本身並不困難。這次只有做到第二題。 Special Array I Special Array II Sum of Digit Differences of All Pairs Find Number of Ways to Reach the K-th Stair 第一題
     Like  Bookmark
  • 日期 2024/05/05 第二跟第三題一直誤會題目意思,若能夠靜下心來寫,我想很快就能解出來。 Valid Word Minimum Number of Operations to Make Word K-Periodic Minimum Length of Anagram Concatenation Minimum Cost to Equalize Array 第一題
     Like  Bookmark
  • 日期:2024/04/28 我想這就是平常寫 LeetCode 跟寫 Contest 的差異,今天第二題就是想好解題思路之後一直覺得這是錯的導致沒打完程式碼,$O(n^3)$ 時間複雜度讓我想太久。 寫程式題目一定是先求有,再去思考好的解答。另外,題目用 Constraints 去推測時間複雜度是可以幫助作答。 這次只有做出第一題,其他題目就是要想一下或是花點時間就可以解出來了。 真是太崩潰爛泥了 崩潰爛泥
     Like  Bookmark
  • 日期:2024/04/14 這次我只有解前兩題。第三題是 Hard (Medium+) 的題目,從評論區來看,解題的人都是從題目給的限制去推測解題方式,第四題我完全沒看。 此次題目: 3114. Latest Time You Can Obtain After Replacing Characters 3115. Maximum Prime Difference 3116. Kth Smallest Amount With Single Denomination Combination 3117. Minimum Sum of Values by Dividing Array
     Like  Bookmark
  • 日期:2024/04/07 這是第二次做 LeetCode weekly contest,很可惜卡在第三題沒完全做完。 此次題目: Longest Strictly Increasing or Strictly Decreasing Subarray Lexicographically Smallest String After Operations With Constraint Minimum Operations to Make Median of Array Equal to K Minimum Cost Walk in Weighted Graph
     Like  Bookmark
  • 日期: 2024/03/31 這是我第一次去做 LeetCode Weekly Contest,一題 Easy、兩題 Medimum、一題 Hard,除了 Hard 沒想出來之外,其它題目約在 5 分鐘內解出來。 此次題目(測驗當下題目不會顯示標題): 3099. Harshad Number 3100. Water Bottles II 3101. Count Alternating Subarrays 3102. Minimize Manhattan Distances
     Like  Bookmark
  • contributed by < a1091150 > GitHub: 測驗 1 GitHub: 測驗 2 實驗機器: Macbook Air 2013 A1466 Architecture: x86_64 Byte Order: Little Endian CPU(s): 4
     Like  Bookmark
  • contributed by <DokiDokiPB > :::danger 使用一個 grave accent 符號來標注,注意細節! :notes: jserv ::: 實驗環境 $ lscpu Architecture: x86_64
     Like  Bookmark