Debugging Numerical/Tensor API Bugs: Aliasing, Axis Handling, and Truncation

You are given a set of pseudo APIs similar to numpy/tensor utilities. The code contains multiple bugs that cause incorrect outputs or unexpected behavior for some inputs. Your tasks:

  1. Identify ro...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: