DataLane

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

Track progress 0/6

0% complete

Start with problem 1
  1. Step 1 · ~5 min · Google, Meta

    Mean

    Given an array of numbers nums, compute the arithmetic mean (average). Return the mean rounded to 2 decimal places.

    PythonNumPyPyTorch
    easyNot started
  2. Step 2 · ~5 min · Google, Meta

    ReLU

    Implement relu(x): return the element-wise maximum of x and 0. Return a list of floats.

    PythonNumPyPyTorch
    easyNot started
  3. Step 3 · ~6 min · Stripe, Google

    Clip

    Clip each value of x into [lo, hi] and return a list of floats.

    PythonNumPyPyTorch
    mediumProNot started
  4. Step 4 · ~5 min · Amazon, Netflix

    Flatten

    Flatten a nested list of numbers one level: [[1,2],[3]] → [1,2,3].

    PythonNumPyPyTorch
    mediumProNot started
  5. Step 5 · ~5 min · Meta, Netflix

    Count a value

    Count how many times target appears in x.

    PythonNumPyPyTorch
    mediumProNot started
  6. Step 6 · ~6 min · Google, NVIDIA

    Dot product

    Implement dot(a, b): the sum of element-wise products of two equal-length vectors.

    PythonNumPyPyTorch
    mediumProNot started

Other tracks

↑↓ navigate openesc close