Evanyuki 的个人博客:软件开发、工具与思考

LeetCode 322 零钱兑换

给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。
1247 words
|
6 minutes
Cover Image of the Post

LeetCode-141-环形链表

**Leetcode 141.Linked List Cycle**
229 words
|
1 minute
Cover Image of the Post