摘要: Question Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] 阅读全文
posted @ 2017-09-30 16:37 清水汪汪 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Question Given a positive integer n and you can do operations as follow: If n is even, replace n with n/2. If n is odd, you can replace n with either 阅读全文
posted @ 2017-09-30 16:29 清水汪汪 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Question You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins tha 阅读全文
posted @ 2017-09-30 15:41 清水汪汪 阅读(149) 评论(0) 推荐(0) 编辑