All challenges
Multiple ChoiceHard 30s

DP vs Naive Recursion

DP improves over naive recursion by:
Options
  1. 1Executing the recursion on a GPU for wider parallelism
  2. 2Rewriting the solution in a different programming language
  3. 3Replacing all function calls with equivalent while loops
  4. 4Storing results of overlapping subproblems to avoid recomputation

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle