-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExAddOp.java
More file actions
35 lines (30 loc) · 856 Bytes
/
ExAddOp.java
File metadata and controls
35 lines (30 loc) · 856 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
31
32
33
34
35
package LeetCodeOJ;
import java.util.*;
/*
* leetcode282
*
*/
public class ExAddOp {
public List<String> addOperators(String num, int target) {
List<String> list = new ArrayList<String>();
String[] op = { "+", "-", "*" };
if (num.length() == 1)
return list;
for (int i = 0; i < op.length; i++) {
}
return list;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String[] input = sc.nextLine().split(",");
if (input.length == 2) {
String opNum = input[0];
int target = Integer.parseInt(input[1]);
System.out.println(new ExAddOp().addOperators(opNum, target));
} else {
break;
}
}
}
}