NumPy allowed · plain Python earns 10 bonus points
Computed matrix × vector transformation
Compute the complete pairwise Euclidean distance matrix between two feature sets.
Implement pairwise_euclidean_distance(x, y): given matrices x (N x D) and y (M x D), compute the (N, M) matrix of L2 Euclidean distances sqrt(sum((x_i - y_j)**2)). Round each float to 4 decimal places.
pairwise_euclidean_distance(x: list[list[float]], y: list[list[float]]) -> list[list[float]]