Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 13d 22h 40m 44s13 days 22 hours 40 minutes 44 seconds.
Topic
Algorithm questions mirror the coding rounds in quant developer and researcher interviews: data structures, complexity and implementation.
35 free, 26 with Premium.
Algorithm questions ask you to design and code a correct, efficient solution to a well-specified problem. Interviewers look for a clear statement of the approach and its complexity before coding, clean implementation, and careful handling of edge cases.
Read the input limits first: n ≈ 10⁵ rules out O(n²), and n ≈ 20 invites O(2ⁿ). The budget often tells you the intended technique.
Hash maps for lookups, heaps for repeated minimums, prefix sums for range totals. The right structure often is the algorithm.
Define a state, write the transition from smaller states, and fix the order of evaluation. Memoised recursion and tabulation give the same answer.
Try empty input, one element, duplicates and the largest case; compare against a brute force on random inputs when you can.
Problems marked with a lock are part of Premium.