Background: undergrad, Squarepoint 2027 Summer Intern, Singapore, applied online, online technical interview in October 2026. Result: rejected.
[Fundamentals]
Static typing vs dynamic typing, pros and cons of each
My approach: static typing catches errors at compile time, has good IDE support, and can be optimized better for performance, but it is verbose to write; dynamic typing is fast to develop in and flexible, but errors only show up at runtime.
SQL vs NoSQL
My approach: SQL has a schema and supports joins and ACID transactions; NoSQL has a flexible schema and scales horizontally easily, but you usually have to trade off consistency and complex queries.
Database indexes
My approach: usually a B+ tree, which turns a query from a full table scan into O(log n); the cost is slower writes and extra storage; you can also bring up the leftmost-prefix rule for composite indexes.
Python generators and decorators
My approach: a generator produces values lazily with yield, which saves memory; a decorator is a higher-order function that takes a function and returns a wrapped function.
What happens when you type a URL into the browser
My approach: DNS resolution -> TCP handshake -> TLS handshake -> send the HTTP request -> the server processes it and responds -> the browser parses and renders.
[Coding: Currency Pairs]
Problem: you are given a mapping from a currency to how many USD 1 unit of that currency is worth (for example "SGD": 0.73 means 1 SGD = 0.73 USD). Output the exchange rates for all directed currency pairs (including USD, excluding a currency paired with itself) in the format "FROM/TO:RATE", where RATE is how much TO you get for 1 unit of FROM, to 5 decimal places, with the results sorted lexicographically.
My approach: first add USD: 1.0 to the mapping; the rate for FROM -> TO is usd[FROM] / usd[TO]; use a double loop that skips FROM == TO, format with f"{a}/{b}:{rate:.5f}", and sort at the end. O(n^2 log n).
Pitfalls: the input may already contain USD, so don't add it twice; and the decimals need to be zero-padded, so use string formatting rather than round.
[Summary]
The fundamentals questions covered a wide range (language, databases, networking). The coding itself was not hard; the key was edge cases and the output format.
Discussion
Loading comments…