置頂文章
精選分類
Artificial-Intelligence
資訊工程HPC
資訊工程Website
資訊工程Leetcode
解題筆記CPE
解題筆記Programming Language
資訊工程英文
語言文章列表
3011. Find if Array Can Be Sorted
⭐️⭐️⭐️ # 題目敘述 You are given a 0-indexed array of positive integers nums. In one operation, you can swap any two adjacent elements if they have the same number of set bits. You are allowed to do this operation any number of times (including zero). Return true if you can sort the array, else return...
more...Ubuntu 各種設定
# module 簡介 專門管理環境變數的工具,全程是 module environment,一般應用於軟體或運行庫等設備有多個版本,且需要分別配置這些環境變數。 module ava# 使用權限 切換為根使用者 user@vm:~$ sudo su -# 增加使用者 sudo 權限 user@vm:~$ sudo adduser [user name] sudo# 移除使用者 sudo 權限 user@vm:~$ sudo deluser [user name] sudo# 使用者相關設定 # 新增使用者 執行下方指令可以新增一位使用者,在 user name...
more...1002. Find Common Characters
⭐️ # 題目敘述 Given a string array words , return an array of all characters that show up in all strings within the words (including duplicates). You may return the answer in any order. # Example 1 Input: words = ["bella","label","roller"] Output:...
more...409. Longest Palindrome
⭐️ # 題目敘述 Given a string s which consists of lowercase or uppercase letters, return the length of the longest palindrome that can be built with those letters. Letters are case sensitive, for example, "Aa" is not considered a palindrome. Palindrome A palindrome is a string that...
more...2486. Append Characters to String to Make Subsequence
⭐️⭐️ # 題目敘述 You are given two strings s and t consisting of only lowercase English letters. Return the minimum number of characters that need to be appended to the end of s so that t becomes a subsequence of s . A subsequence is a string that can be derived from another string by deleting some or no...
more...