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