2024 iThome 鐵人賽
Share More Gain More
佛心分享-刷題不只是刷題
選手 27 文章 768
EasyRelated Topics: Array / Hash Table / SortingLeetCode Source 解題想法 基本上就是判斷說兩...
題目:給定幾種不同面額的硬幣,硬幣數量不限,要求用最少的硬幣數量湊出一個指定的金額 amount。如果無法湊出這個金額,則回傳 -1。 範例: 輸入: coin...
MediumRelated Topics: Hash Table / String / Greedy / Sorting / CountingLeetCode...
Day 23
2024-10-07
566
0
原文題目 Given an m x n integer matrix matrix, if an element is 0, set its entire ro...
Day 23
2024-10-07
565
0
DAY 23 試題 問題描述 在一個 m x n 的矩形島嶼上,這個島嶼的左邊和上邊邊界接壤太平洋,而右邊和下邊邊界接壤大西洋。島嶼被劃分為一個由正方形單元格...
原文題目 You are climbing a staircase. It takes n steps to reach the top. Each time...