1.2k 1 分鐘

⭐️⭐️⭐️ # 題目敘述 Given an array nums of integers, return the length of the longest arithmetic subsequence in nums . Note that: A subsequence is an array that can be derived from another array by deleting some or no elements without changing the order of the remaining elements. A sequence seq is...
864 1 分鐘

⭐️⭐️⭐️ # 題目敘述 You are given an array prices where prices[i] is the price of a given stock on the ith day, and an integer fee representing a transaction fee. Find the maximum profit you can achieve. You may complete as many transactions as you like, but you need to pay the transaction fee for each...
1.4k 1 分鐘

⭐️⭐️⭐️⭐️⭐️ # 題目敘述 You are given two 0-indexed arrays nums and cost consisting each of n positive integers. You can do the following operation any number of times: Increase or decrease any element of the array nums by 1 . The cost of doing one operation on the ith element is cost[i] . Return the...
397 1 分鐘

從測試、建置到部署一次自動化 # What is CI/CD? CI/CD 工具也是為了 DevOps 概念而產生的自動化工具,透過持續整合、持續部署的方式,在開發階段就自動協助開發人員偵測程式碼問題,並部署至伺服器。 # CI(Continuous Integration)持續整合 當開發人員完成一個階段性的程式碼後就經由自動化工具測試、驗證,協助偵測程式碼問題,並建置出即將部署的版本(Build)。 # CD(Continuous Deployment)持續部署 可以說是 CI 的下一階段,經過 CI 測試後所構建的程式碼可以透過 CD 工具部署至伺服器,減少人工部署的時間。 #...
2k 2 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # What is DevOps? DevOps 拆開來就是 Development + Operations ,也就是開發與維運。 更準確的說可以是「開發」「測試」「維運」三者的結合,是一種軟體開發和部署的方法論。 DevOps 主要促進開發和 IT 運營兩個團隊的結合與運作,提升團隊之間的協作和溝通。 DevOps...
1.7k 2 分鐘

⭐️⭐️⭐️ # 題目敘述 You are given a 0-indexed array nums of n integers, and an integer k . The k-radius average for a subarray of nums centered at some index i with the radius k is the average of all elements in nums between the indices i - k and i + k (inclusive). If there are less than k elements before...
2k 2 分鐘

⭐️ # 題目敘述 There is a biker going on a road trip. The road trip consists of n + 1 points at different altitudes. The biker starts his trip on point 0 with altitude equal 0 . You are given an integer array gain of length n where gain[i] is the net gain in altitude between points i ​​​​​​ and i + 1 for...
1k 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 淺淺介紹一下 Java JAVA 彈性且方便使用者使用,是開發人員建置多種應用程式時的最愛,舉凡社交媒體、Web 和遊戲應用程式及網路與企業應用程式,無所不在。 # Spring vs. Spring Boot Spring Spring Boot Info 以 JAVA 為基礎的開放原始碼 Web 應用程式架構。 在 Spring 架構上建置的延伸模組或模組。 Feature 使用預先建置程式碼的工具和程式庫,提供彈性且完全可設定的環境,以建立自訂、鬆散結合的 Web 應用程式。 提供建立獨立 Spring...
641 1 分鐘

ChienI Kao 筆記網站 JHTNT 筆記網站 # 軟體框架 (Software Framework) 為軟體開發提供了一個基礎的架構、地基,去實現更複雜的軟體或是邏輯,使開發更有效率的進行,他扮演著規範和定義的角色。 框架本身無法自行運作,開發者必須將自己的程式搭配框架才是一個完整的應用程式。 運用框架其實就像把別人已經做好的零件拿來使用,就像要製作一台機器人,總不可能從製作螺絲開始吧!螺絲通常是像他人購買,而我們專注於完成機器人的整體。 而軟體架構就是如此,他提供了別人事先寫好的函式庫(Library)或類別庫(Class...
2.5k 2 分鐘

⭐️⭐️⭐️ # 題目敘述 Given a function fn and a time in milliseconds t, return a debounced version of that function. A debounced function is a function whose execution is delayed by t milliseconds and whose execution is cancelled if it is called again within that window of time. The debounced function...