問題翻譯:
- 給一個二維陣列,該陣列每個元素代表一塊地,每個元素內的值代表建築物高度.
- Keep City Skyline,代表一種建造規則,任何建築物不得建造比原本的列跟欄(column and row)最高建築的還要高.
問題翻譯:
問題:
找出有多少不同組信箱地址.規則如下:
Example 1:
Input: [“test.email+alex@leetcode.com“,”test.e.mail+bob.cathy@leetcode.com“,”testemail+david@lee.tcode.com“]
Output: 2
Explanation: “testemail@leetcode.com“ and “testemail@lee.tcode.com“ actually receive mails
Note:
1 <= emails[i].length <= 100
1 <= emails.length <= 100
Each emails[i] contains exactly one '@' character.
問題:
字串 J是寶石的集合,每個字元代表一種寶石,S字串則是一堆石頭集合,每個字元代表一顆石頭,需要找S中,有多少J裡面的寶石.
註:大小寫為不相同的,例如:大寫A跟小寫a代表不同的寶石.
SQL學習網站 - 不用自行建造SQL就可以直接在這個網站練習,對於基礎學習SQL是一個不錯的選擇.
https://sqlbolt.com
Leetcode - 資料結構與演算法練習網站
https://leetcode.com/
先建立Github 專案儲藏庫
取得Clone URL: https://github.com/USERNAME/ProjectName.git
在Eclipse建立Maven Java 專案
new->other-maven Project-> maven-archetype-quickstart
專案右鍵->Team->share Project
->勾選Use or create repository in parent folder of project
->點擊 Create Repository
設定 Git .gitignore 在Eclipse Java Maven專案中設定的內容
1 | #Eclipse |
1 | git clone git-url |
window/show View/Git Repositions
複製Github 專案的URL
Git Repositions上右鍵/past repository Path or URL/該打的打一打…
Pockage Explorer上右鍵/import/maven->Existing Maven Project
->Root Directory下設定上一個步驟存的專案位址->找到後打勾就完成了
可能的錯誤:在build時可能會產生出jre錯誤,因為maven只能用jdk所以必須設定build configure,將jre設定成jdk的jre
其他種方式如:import->git專案->convert to maven project會多產生一個pom.xml檔會不順利
———-完成———-
剩下在設定POM裡面的相依性套件以及classPath相關
註:如果步驟3直接連線github會出錯,目前還找不到答案.所以才使用步驟5的方式.
如果有人找到可以直接在Eclipse裡面操作的麻煩留言告知一下,感謝.