comments for bob solutions

This commit is contained in:
2026-04-19 00:02:15 -05:00
parent ee7b6b1581
commit fcda1c6e25
5 changed files with 30 additions and 26 deletions

View File

@@ -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);
}