-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoin.java
More file actions
executable file
·30 lines (29 loc) · 744 Bytes
/
Copy pathcoin.java
File metadata and controls
executable file
·30 lines (29 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package test;
/**
* Created by Administrator on 2018/3/31 0031.
*/
public class coin {
static int count=0;
// public static void coin(int[]nums,int target,int start){
// if(target==0) {
// count++;
// System.out.println(count);
// return ;
// }
// else if(target<0)
// return;
// for(int i=start;i<nums.length;i++){
// int tmp=target-nums[i];
// coin(nums,tmp,start);
//
// }
// }
//
// public static void main(String[] args) {
// int[] nums={1,2,5,10};
// int target=100;
// coin coin=new coin();
// coin(nums,target,0);
// System.out.println(count);
// }
}