Skip to content

Commit e0ee234

Browse files
Correção de Bug com a classe Result
1 parent aa5ba04 commit e0ee234

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/main/java/com/hackerrank/PermuteArray.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1 2 2 1
1818
3 3 3 4
1919
*/
20-
class Result {
20+
class ResultPermuteArray {
2121

2222
public static String twoArrays(int k, List<Integer> A, List<Integer> B) {
2323
Collections.sort(A);
@@ -68,7 +68,7 @@ public static void main(String[] args) throws IOException {
6868
B.add(BItem);
6969
}
7070

71-
String result = Result.twoArrays(k, A, B);
71+
String result = ResultPermuteArray.twoArrays(k, A, B);
7272

7373
bufferedWriter.write(result);
7474
bufferedWriter.newLine();

src/main/java/com/hackerrank/ResourceAllocation.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.ArrayList;
99
import java.util.Arrays;
1010
import java.util.List;
11+
1112
/*
1213
5
1314
1
@@ -21,7 +22,8 @@
2122
14
2223
7
2324
*/
24-
class Result {
25+
26+
class ResultResourceAllocation {
2527

2628
public static int getMinMatchines(List<Integer> start, List<Integer> end) {
2729

@@ -31,7 +33,7 @@ public static int getMinMatchines(List<Integer> start, List<Integer> end) {
3133
}
3234
}
3335

34-
public class ResourceAllocation {
36+
class ResourceAllocation {
3537
public static void main(String[] args) throws IOException {
3638
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
3739
//BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
@@ -56,7 +58,7 @@ public static void main(String[] args) throws IOException {
5658
System.out.println(Arrays.toString(start.toArray()));
5759
System.out.println(Arrays.toString(end.toArray()));
5860

59-
int result = Result.getMinMatchines(start,end);
61+
int result = ResultResourceAllocation.getMinMatchines(start,end);
6062

6163
bufferedWriter.write("->"+result);
6264
bufferedWriter.newLine();

0 commit comments

Comments
 (0)