Billy SU

@billy4195

Joined on Feb 15, 2017

  • contributed by < Billy4195 > Problem Set Problem 1 static list_ele_t *get_middle(struct list_head *list) { struct list_head *fast = list->next, *slow; list_for_each (slow, list) { if (COND1 || COND2)
     Like  Bookmark
  • contributed by <Billy4195> :penguin: Requirements [x] fork [lab0-c] on GitHub(https://github.com/sysprog21/lab0-c) [x] Reference: Git 教學和 GitHub 設定指引 [x] Implementation
     Like  Bookmark
  • contributed by < Billy4195 > 2021q1 第 1 週測驗題 [x] Explain how the source code works. [x] Use Graphviz to visualize the linked-list quiz1 on HackMD [x] The random() is used in the test program, but there is some pattern for the generated number when we execute it several times. Try to fix it and use some other Pseudorandom number generator [x] Refer to Optimized QuickSort — C Implementation (Non-Recursive), use non-recursive method to rewrite the quick sort function.
     Like  Bookmark
  • # Leetcode Q540 :::info Contributor: [蘇炳立 (BillySu)](https://github.com/Billy4195) ::: Problem: Given a sorted array consisting of only integers where every element appears exactly twice except for one element which appears exactly once. Find this single element that appears only once. ### Example 1: Input: [1,1,2,3,3,4,4,8,8] Output: 2 ### Example 2: Input: [3,3,7,7,10,11,11] Output: 10 ### Solution 1: Because the given array is sorted, the simplest way to solve this problem is to scan o
     Like  Bookmark