Back to Questions

The 3n + 1 Problem (Collatz Conjecture)

52.2K viewsAsked at Netflix
Medium

Question Explain

Given two numbers, $i$ and $j$, determine the maximum cycle length over all integers between $i$ and $j$ inclusive. Use memoization to speed up calculation.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
The 3n + 1 Problem (Collatz Conjecture) - Interview Question