Challenging SDE Interview at WeRide: Tackling Subarray Sum Equals K with C++

weride | SDE | Interview Experience

Interview Date: Not specified
Result: Rejected
Difficulty: High

Interview Process

The candidate applied at the end of September and completed an online assessment that was quite challenging, failing to pass all test cases. Three weeks later, the HR reached out to schedule the first round of interviews, which took place about a week after that. The first round was an in-person interview with a Chinese interviewer who could conduct the interview in either Chinese or English. It began with a 10-minute self-introduction followed by questions about the resume and modern C++ knowledge. The candidate then worked on a medium-difficulty coding problem for 45 minutes, starting with a brute force approach and discussing how to optimize it to O(n). The last five minutes were reserved for questions and answers. The candidate was rejected two days after the interview, and the HR mentioned that the team required candidates with a strong proficiency in C++ due to daily tasks.

Technical Questions

  1. Subarray Sum Equals K (Hash Table, Prefix Sum, Array)

Tips & Insights

The candidate noted the importance of being proficient in modern C++ for the role and suggested focusing on optimization strategies during coding interviews.