Vectorized 1-NN and Neural Network Forward Pass

Problem overview from a real Openai interview:

Compute squared Euclidean distances for training and query arrays without loops in NumPy, then map argmin logic to Wx+b layers and softmax for OpenAI.

Check more interview questions and experiences about Openai

Please log in to view interview details