DisneyCodingMembers
Rank Vectors by Cosine Similarity to a Query
Members only
A short coding exercise about scoring a set of vectors against a query and returning them in order of closeness. It tests whether you can turn a familiar formula into clean code and handle degenerate inputs. Expect follow-ups about performance when the data grows large.
SWE
math
sorting
array
linear-algebra
python
easy
Frequency
Single report
Last asked
—
Stage
phone-screen
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 4 common pitfalls
- 6 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
