原创 ARTS打卡第十二週

Algorithm:141. 環形鏈表 https://leetcode-cn.com/problems/linked-list-cycle/submissions/ 給定一個鏈表,判斷鏈表中是否有環。 爲了表示給定鏈表中的環,我

原创 ARTS打卡第十七週

Algorithm:Leetcode 950. Reveal Cards In Increasing Order In a deck of cards, every card has a unique integer. You

原创 ARTS打卡第十週

Algorithm:61. Rotate List https://leetcode-cn.com/problems/rotate-list/ Given a linked list, rotate the list to the

原创 ARTS打卡第十一週

Algorithm:21. 合併兩個有序鏈表 將兩個有序鏈表合併爲一個新的有序鏈表並返回。新鏈表是通過拼接給定的兩個鏈表的所有節點組成的。 示例: 輸入:1->2->4, 1->3->4 輸出:1->1->2->3->4->4 來

原创 ARTS打卡第十六週

Algorithm: Leetcode 8. 字符串轉換整數 (atoi) 請你來實現一個 atoi 函數,使其能將字符串轉換成整數。 首先,該函數會根據需要丟棄無用的開頭空格字符,直到尋找到第一個非空格的字符爲止。 當我們尋

原创 ARTS打卡第五週

Algorithm:Leetcode 6. Z 字形變換 題目描述: 將一個給定字符串根據給定的行數,以從上往下、從左到右進行 Z 字形排列。 比如輸入字符串爲 "LEETCODEISHIRING" 行數爲 3 時,排列如下: L

原创 ARTS打卡第十四周

Algorithm: Leetcode 94. Binary Tree Inorder Traversal https://leetcode-cn.com/problems/binary-tree-inorder-traversa

原创 ARTS打卡第十五週

Algorithm:Leetcode 933. 最近的請求次數 寫一個 RecentCounter 類來計算最近的請求。 它只有一個方法:ping(int t),其中 t 代表以毫秒爲單位的某個時間。 返回從 3000 毫秒前到現

原创 ARTS打卡第十三週

Algorithm:Leetcode 739 每日溫度 https://leetcode-cn.com/problems/daily-temperatures/ Given a list of daily temperatures

原创 如何批量刪除docker中tag爲的鏡像

我們在使用docker的過程中,經常會發現 docker images 列出的鏡像中有很多這樣的鏡像 REPOSITORY TAG

原创 ARTS打開第九周

Algorithm:Leetcode 234. 迴文鏈表 https://leetcode-cn.com/problems/palindrome-linked-list/submissions/ 請判斷一個鏈表是否爲迴文鏈表。 示

原创 ARTS打卡第八週

Algorithm: Leetcode 92. 反轉鏈表 II 反轉從位置 m 到 n 的鏈表。請使用一趟掃描完成反轉。 說明: 1 ≤ m ≤ n ≤ 鏈表長度。 示例: 輸入: 1->2->3->4->5->NULL, m =

原创 ARTS打卡第七週

Algorithm:Leetcode 19. Remove Nth Node From End of List 給定一個鏈表,刪除鏈表的倒數第 n 個節點,並且返回鏈表的頭結點。 示例: 給定一個鏈表: 1->2->3->4->5

原创 ARTS打卡第六週

Algorithm: Leetcode 445. 兩數相加 II 題目描述: You are given two non-empty linked lists representing two non-negative integ

原创 ARTS打開第五週

標題Algorithm Review: The Huawei Ban — How the Trade War is Hurting Tech 美國對華爲的禁令會造成什麼影響?對華爲來說,硬件不是太大的問題,但是想替換掉Androi