Permutation Check and Integer-Exponent Power
Asked at Tesla · Coding Questions · Difficulty: Medium · Last asked Jul 25, 2025
Two small functions that are often asked together: check whether a list is a permutation of `0..n-1`, and raise a floating-point number to an integer power quickly.
Loading the problem…
More Tesla interview questions
- Transformer Block with a Manual Backward Pass
- K-Means Clustering on Image Patches
- MDP Value Iteration and Policy Iteration
- Trajectory Waypoint Distance Queries
- CNN, Residual Connections and Activation Function Fundamentals
- Rollback-Capable KV Store with Nested Transactions