WeRide As a leading company in the field of autonomous driving, the technical requirements are high and the OA difficulty is not small. The interview questions mostly involve algorithms, data structures, and engineering implementation details. For many candidates, OA is the first barrier to subsequent interviews, so it is crucial to be well-prepared and to give a good performance on the spot. Thanks to Programhelp's remote voice assistance, I was able to clear my mind efficiently and write code quickly in a tight schedule, and successfully passed the OA.
Overview of interviews
WeRide OA usually includes:
- Two programming questionsIt is a medium to high level of difficulty with a bias towards algorithms and data structures and lasts about 90 minutes.
- One design or engineering question, examining system design capabilities or coding detail implementation.
- multiple-choice questions, covering the basics and general knowledge of programming.
Overall time constraints, difficult questions, and the requirement to write efficient and correct code.
WeRide Online Assessment Real Questions
1. Find the Closest Pair of Points
Given a list of points (x, y) on a 2D plane, find the pair of points with the smallest Euclidean distance between them. Return the distance.
Input.points = [[1,2], [3,4], [6,8], [2,3]]
Output.1.414 (distance between points [1,2] and [2,3])
2. Detect Lane Line from Sensor Data
You are given an array representing sensor data capturing the lane line positions on a straight road segment. The data contains some noise. function to smooth the lane line positions using a moving average with window size k.
Input.data = [2, 3, 5, 8, 7, 6, 4]k = 3
Output.[NaN, NaN, 3.33, 5.33, 6.67, 7.00, 5.67] (first k-1 elements are NaN or None)
3. Calculate the Collision Probability
Given two cars moving towards an intersection from perpendicular roads, each with a constant speed, calculate whether they will collide assuming both start at time t=0 and move straight through the intersection.
Input.
- Car A start position and speed.
posA = 0,speedA = 10m/s - Car B start position and speed.
posB = 0,speedB = 15m/s - Intersection length = 5 meters
- Both start at t=0 from distance
posAAndposBto intersection.
Determine if their paths overlap in the intersection.
4. Path Planning with Obstacles
Given a grid representing a map with 0 as free space and 1 as obstacles, write a function to find the shortest path from the top-left corner to the bottom-right corner, moving only up, down, left, or right.
Input.
grid = [
[0, 0, 1, 0],
[0, 1, 1, 0]
]
Output.
Length of the shortest path (number of steps), or -1 if no path exists.
5. Data Stream Median
WeRide receives a continuous data stream from sensors. Design a data structure that supports adding a number and finding the median of all added numbers efficiently. Design a data structure that supports adding a number and finding the median of all added numbers efficiently.
Operations.
addNum(num)- Add a number to the data structure.findMedian()- Return the median of all elements so far.
FAQ
Q: How long does OA take?
A: Usually about 90 minutes.
Q: How difficult are the questions?
A: Algorithm questions were upper-middle, design questions focused on basic data structures and ideas, and were overall hard.
Q: What languages are available?
A: Commonly used C++, Java, Python.
Q: What should I do if I get stuck in the field?
A: It is recommended that you prepare for the classification of topics in advance, and Programhelp's remote voice assistants are always ready to help you sort out your thoughts, so you won't panic on the spot.
Programhelp Advantages of OA ghostwriting
WeRide OA is fast-paced and time-critical, and it's easy to get stuck on details or ideas.Programhelp's remote, no-frills on-line ghostwriting with voice assistance can help you in real time:
- Quickly prompt a shift in thinking to avoid getting stuck in a violent solution quagmire
- Fine checking code boundary conditions and complexity analysis
- Assist with system design question teardowns, sorting out architecture and key points
- Behavioral and technical interview preparation all in one to help get through the whole process
With Programhelp by your side, online OA is no longer difficult! If you also want to get a WeRide offer, let's arrange a customized assistance program with me!