HF RL Explorer

construct/mc langford

construct/mc langford: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). A Langford sequence L(2,3) is a sequence seq 0..5 of length 6 that contains exactly two copies of each integer 1..3, such that the two copies of every value v are exactly v+1 positions apart (their indices differ…

The task

A Langford sequence L(2,3) is a sequence seq[0..5] of length 6 that contains exactly two copies of each integer 1..3, such that the two copies of every value v are exactly v+1 positions apart (their indices differ by v+1). Example: L(2,3) = [2, 3, 1, 2, 1, 3].

Part of amphora/MathConstructOptimize-Envs-harbor.