摘要: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee 阅读全文
posted @ 2020-06-16 06:28 闲云潭影 阅读(75) 评论(0) 推荐(0) 编辑
摘要: The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding one 阅读全文
posted @ 2020-06-16 05:38 闲云潭影 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array, yo 阅读全文
posted @ 2020-06-16 04:49 闲云潭影 阅读(138) 评论(0) 推荐(0) 编辑