comments for bob solutions
This commit is contained in:
@@ -5,14 +5,14 @@ import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
public class WeightedDifference {
|
||||
public static void main(String[] args) throws IOException{
|
||||
// Working but O(n*n) --> 50% of test cases fail on time complexity
|
||||
public class WeightedDifference {
|
||||
public static void main(String[] args) throws IOException {
|
||||
|
||||
double t = System.currentTimeMillis();
|
||||
double t = System.currentTimeMillis();
|
||||
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
|
||||
|
||||
|
||||
// Write code here
|
||||
|
||||
int a = Integer.parseInt(br.readLine());
|
||||
@@ -42,7 +42,7 @@ public class WeightedDifference {
|
||||
}
|
||||
|
||||
System.out.println(max);
|
||||
System.out.println(System.currentTimeMillis()-t);
|
||||
System.out.println(System.currentTimeMillis() - t);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user