I recently had a 45-minute video interview for a Full Stack Engineer position at Millennium Management. The interview covered my previous projects, client-server communication, scalability, and three Java code analysis questions involving floating-point precision, hash-based collections, and multithreading.
The interviewer mentioned that the team was hiring for only one position, which made the process feel quite competitive. I also had difficulty understanding some of the questions because they weren't communicated very clearly, and I didn't feel the interviewer was particularly engaged. I'm still waiting for the final result, but I suspect I may not move forward.
Interview Details
Project Discussion: Client-Server Communication and Scalability
The interview started with questions about my previous engineering projects. I was asked to explain some of the systems I had worked on and discuss how different services communicated with client applications.
The interviewer also brought up scalability and asked questions related to designing systems that could handle increasing workloads. Unfortunately, the questions were sometimes difficult to interpret, which made the discussion less productive than I had hoped.
Question 1 — Java: Floating-Point Precision and Equality
The first coding question involved a short Java program performing arithmetic with double values. I was asked to predict the printed output and explain why two calculations that appeared mathematically equivalent might produce different results.
The code was similar to the following:
public class DecimalCheck {
public static void main(String[] args) {
double x = 0.3 - 0.2;
double y = 0.2 - 0.1;
System.out.println((float) x);
System.out.println((float) y);
System.out.println(x == y);
System.out.println(x == y);
}
}
public class DecimalCheck {
public static void main(String[] args) {
double x = 0.3 - 0.2;
double y = 0.2 - 0.1;
System.out.println((float) x);
System.out.println((float) y);
System.out.println(x == y);
System.out.println(x == y);
}
}
After predicting the output, I was asked how I would modify the code so that the two calculated values could be compared as equal. The question focused on Java floating-point representation, precision, numeric casting, and equality comparisons.
Question 2 — Java: HashSet, ArrayList, and Mutable Objects
The second question involved a custom class representing a two-dimensional point. The class implemented equals() and hashCode() based on its coordinates, but the coordinate fields were mutable. The interviewer provided code similar to this: