NumPy

Work with arrays, matrices, and scientific computation at blazing speed using NumPy — the backbone of numerical computing.

40 Problems Available
2D Array Indexing
Beginner

Access the element at row 1, column 2 in a 2D array.

40 points Solve
Array Broadcasting
Beginner

Add a scalar to each element of an array.

40 points Solve
Array Comparison
Beginner

Compare two arrays element-wise.

40 points Solve
Array Concatenation
Beginner

Concatenate two 1D arrays.

50 points Solve
Array Concatenation (Axis=1)
Beginner

Concatenate two 2D arrays column-wise.

50 points Solve
Array Copy
Beginner

Create a copy of an array (not a view).

40 points Solve
Array Flatten
Beginner

Flatten a 2D array to 1D.

40 points Solve
Array Indexing
Beginner

Access the 3rd element in a 1D array.

30 points Solve
Array Max/Min
Beginner

Find the maximum and minimum values in an array.

40 points Solve
Array Mean
Beginner

Calculate the mean of array elements.

40 points Solve
Array Multiplication
Beginner

Multiply each element in an array by 2.

40 points Solve
Array Ravel
Beginner

Convert a 2D array to 1D using ravel.

40 points Solve
Array Shape
Beginner

Get the shape of a 2x3 array.

40 points Solve
Array Slicing
Beginner

Get elements from index 1 to 3 in a 1D array.

40 points Solve
Array Slicing with Steps
Beginner

Select every other element from an array.

40 points Solve
Array Sorting
Beginner

Sort an array in ascending order.

40 points Solve
Array Split
Beginner

Split a 1D array into 3 equal parts.

50 points Solve
Array Stack Horizontally
Beginner

Stack two 1D arrays horizontally.

50 points Solve
Array Stack Vertically
Beginner

Stack two 1D arrays vertically.

50 points Solve
Array Standard Deviation
Beginner

Calculate standard deviation of array elements.

40 points Solve
Array Sum
Beginner

Calculate the sum of all elements in an array.

40 points Solve
Array Transpose
Beginner

Transpose a 2D array.

50 points Solve
Array Unique Elements
Beginner

Find unique elements in an array.

40 points Solve
Array Variance
Beginner

Calculate variance of array elements.

40 points Solve
Array with Diag
Beginner

Create a diagonal matrix from a 1D array.

50 points Solve
Array with Full
Beginner

Create a 2x2 array filled with 7s.

40 points Solve
Array with Linspace
Beginner

Create an array with 5 evenly spaced numbers between 1 and 2.

50 points Solve
Array with Logspace
Beginner

Create an array with 4 logarithmically spaced numbers between 10^1 and 10^2.

50 points Solve
Array with Ones
Beginner

Create a 2x4 array filled with ones.

40 points Solve
Array with Range
Beginner

Create an array with numbers from 0 to 9.

40 points Solve
Array with Step
Beginner

Create an array with even numbers from 2 to 10.

40 points Solve
Array with Zeros
Beginner

Create a 3x3 array filled with zeros.

40 points Solve
Boolean Indexing
Beginner

Select elements greater than 2 from an array.

50 points Solve
Create 1D Array
Beginner

Create a 1D NumPy array with numbers 1 through 5.

30 points Solve
Create 2D Array
Beginner

Create a 2x3 2D NumPy array with numbers 1 through 6.

40 points Solve
Dot Product
Beginner

Calculate the dot product of two arrays.

50 points Solve
Element-wise Addition
Beginner

Add two arrays element-wise.

40 points Solve
Identity Matrix
Beginner

Create a 4x4 identity matrix.

40 points Solve
Random Array
Beginner

Create a 1D array with 5 random numbers between 0 and 1.

50 points Solve
Reshape Array
Beginner

Reshape a 1x6 array to 2x3.

50 points Solve