The Hofstadter H sequence is defined as follows:
The first elements of the sequence are 0, 1, 1, 2, 3, 4, 4, 5, 5, 6.
Write a function to compute for a given n.

Solution Stats

19 Solutions

11 Solvers

Last Solution submitted on Jan 27, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...