680 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # Create Project npm create svelte@latest <project_name># Example: # 安裝套件管理工具 npm install# 把 dev 中的專案 run 起來 npm run dev剛 create 的 project run 起來會長這樣 # Project 結構介紹 .│ .gitignore│ .npmrc│ package-lock.json│ package.json│ README.md│ svelte.config.js│...
383 1 分鐘

⭐️ # 題目敘述 Given an integer n , return true if it is a power of four. Otherwise, return false . An integer n is a power of four, if there exists an integer x such that n == 4^x . # Example 1 Input: n = 16 Output: true # Example 2 Input: n = 5 Output: false # Example 3 Input: n = 1 Output:...
238 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 簡介 這是一個在 2019 年,衝進大家視眼裡的一個前端框架。 在介紹此框架前,大家可能比較熟悉的三大前端框架是: React、Vue 或 Angular。 而這個前端框架有別於這三種,留一些懸念看下去吧! # 特色 當應用程式運行時,像 React 和 Vue 等框架會在使用者的瀏覽器直接做它們想要做的事情,而 Svelte 則是將做的這些事移到編譯階段處理,因此那些做的事情只會發生在你建置應用程式的時候,進而能產生高度優化的原生 JavaScript 程式碼。
1.2k 1 分鐘

⭐️⭐️⭐️⭐️⭐️ # 題目敘述 Given an integer array nums and an integer k , return the maximum sum of a non-empty subsequence of that array such that for every two consecutive integers in the subsequence, nums[i] and nums[j] , where i < j , the condition j - i <= k is satisfied. A subsequence of...
2.2k 2 分鐘

🌕🌗🌑🌑🌑 # 題目連結 題目連結 Online Judge uDebug # 題目說明 Time limit: 3.000 seconds # 題目 Ivan works at a factory that produces heavy machinery. He has a simple job — he knocks up wooden boxes of different sizes to pack machinery for delivery to the customers. Each box is a rectangular parallelepiped. Ivan...
1.4k 1 分鐘

🌕🌑🌑🌑🌑 # 題目連結 題目連結 Online Judge uDebug # 題目說明 Time limit: 3.000 seconds # 題目 There is an objective test result such as “OOXXOXXOOO” . An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself and its just previous...
2.4k 2 分鐘

⭐️⭐️⭐️ # 題目敘述 You are given a nested list of integers nestedList . Each element is either an integer or a list whose elements may also be integers or other lists. Implement an iterator to flatten it. Implement the NestedIterator class: NestedIterator(List<NestedInteger> nestedList)...
1.7k 2 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 一個可以全自動幫你升級到最新 image 的工具 WatchTower 官方文件 https://containrrr.github.io/watchtower/ # 介紹 WatchTower 啓動後,會開始幫你監控機器上所有正在執行的 container,每隔一段時間發現有新的 image 後,它就會幫你下載最新 image 並且使用你當初建立該 container 時的相同環境設定去幫你重新啓動容器。 # 開啟 WatchTower 接下來會介紹兩個方式開啟 WatchTower: # docker 開啟...
3.9k 4 分鐘

🌕🌑🌑🌑🌑 # 題目連結 題目連結 Online Judge uDebug # 題目說明 Time limit: 3.000 seconds # 題目 DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely Adenine, Thymine, Guanine, and Cytosine as shown in Figure 1. If we represent a...
1.2k 1 分鐘

⭐️ # 題目敘述 Given two strings s and t , return true if they are equal when both are typed into empty text editors. '#' means a backspace character. Note that after backspacing an empty text, the text will continue empty. # Example 1 Input: s = "ab#c", t =...