Challenge: Vectors and Matrices

Assess your understanding of vectors and matrices with a few programming exercises.

These coding challenges test our familiarity with vectors and matrices operations respectively.

Exercise 1 - Norm

The p-norm of a vector xx is defined as:

xp=x1p+x2p+x3p+...p|x|^p =\sqrt[p] {x_1^p+x_2^p+x_3^p+...}

Take a vector xx and norm’s order pp and implement its norm without using the predefined function.

Get hands-on with 1200+ tech skills courses.