XPeng Interview Questions
We track 3 interview questions reported from XPeng: 2 in Coding & Leetcode-style Questions, 1 in ML Fundamentals & Algorithms. They average 3.3/5 difficulty — medium for a working engineer — and every one was reported by someone who sat the loop, not written by us. The topics that come up most: tensor, broadcasting, euclidean-distance, numpy.
Practice these on the problems board →Question mix
- Coding & Leetcode-style Questions2
- ML Fundamentals & Algorithms1
Difficulty
- 3/5 — medium2
- 4/5 — hard1
Asked for MLE (3), SWE (2), RS (1)
Topics XPeng asks about
Reported XPeng questions
Compute Euclidean Distance Between Two Tensors
3/5Sourced from XPeng, this machine learning fundamentals problem requires calculating pairwise Euclidean distances across high-dimensional batched tensor inputs without relying on standard slow iteration loops. You will need to leverage vectorization techniques and matrix operations to produce an output tensor of specified shape efficiently. This exercise evaluates your deep understanding of tensor manipulation and linear algebra operations in deep learning frameworks. The full problem statement and optimized code solution are available exclusively with a paid subscription.
ML Fundamentals & Algorithmstensorbroadcastingeuclidean-distanceMax Sum of a Sub-Rectangle No Larger Than K (LC 363)
4/5Determine the largest possible sub-grid summation within a two-dimensional matrix that remains beneath a specified upper limit, a classic advanced algorithmic challenge reported during interviews at XPeng. This problem tests your ability to combine two-dimensional prefix sums with efficient range search data structures like binary search trees. Gain access to the full problem text and optimal solution strategy with a subscription.
Coding & Leetcode-style Questionsmatrixprefix-sumbinary-searchNumber of Islands and Number of Distinct Islands
3/5This reported interview question from XPeng challenges candidates to navigate a two-dimensional grid representing terrain boundaries to count standard land clusters while also identifying how many unique spatial configurations exist among them. This task tests your graph traversal capabilities, pattern recognition, and ability to normalize geometric structures for accurate comparison. To examine the complete problem statement and discover the optimal programmatic solution, a paid subscription is required.
Coding & Leetcode-style Questionsgriddfsbfs
Companies that ask similar questions
XPeng interview FAQ
- How many XPeng interview questions are available?
- 3 reported XPeng questions, the largest group being Coding & Leetcode-style Questions (2).
- How hard is the XPeng interview?
- Across the questions we track, XPeng averages 3.3 out of 5: 2 at 3/5, 1 at 4/5.
- What topics does XPeng ask about?
- Most often tensor, broadcasting, euclidean-distance, numpy, pytorch.