Python problem track
Python Foundations
The pad that opens an analyst or DE screen: means, activations, clip, flatten. Same tests in NumPy, Python, and PyTorch.
6 problems · ~32 min total · Data Analyst · Data Engineer · Analytics Engineer · Data Scientist · Data Architect
Step 1 · ~5 min · Google, Meta
MeanGiven an array of numbers nums, compute the arithmetic mean (average). Return the mean rounded to 2 decimal places.
PythonNumPyPyTorcheasyNot startedStep 2 · ~5 min · Google, Meta
ReLUImplement relu(x): return the element-wise maximum of x and 0. Return a list of floats.
PythonNumPyPyTorcheasyNot startedStep 3 · ~6 min · Stripe, Google
ClipClip each value of x into [lo, hi] and return a list of floats.
PythonNumPyPyTorchmediumProNot startedStep 4 · ~5 min · Amazon, Netflix
FlattenFlatten a nested list of numbers one level: [[1,2],[3]] → [1,2,3].
PythonNumPyPyTorchmediumProNot startedStep 5 · ~5 min · Meta, Netflix
Count a valueCount how many times target appears in x.
PythonNumPyPyTorchmediumProNot startedStep 6 · ~6 min · Google, NVIDIA
Dot productImplement dot(a, b): the sum of element-wise products of two equal-length vectors.
PythonNumPyPyTorchmediumProNot started