Slug: bit-subset-01 · Paired reading: Chapter 23
Prompt
fn subsets_mask(nums: &[i32]) -> Vec<Vec<i32>> — power set via masks
0..(1<<n) (n ≤ 20). Same contents as backtracking subsets (order free).
The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).
Don’t have the book yet? The landing page stays open — purchase unlocks this gym.
advanced · order 169
Slug: bit-subset-01 · Paired reading: Chapter 23
fn subsets_mask(nums: &[i32]) -> Vec<Vec<i32>> — power set via masks
0..(1<<n) (n ≤ 20). Same contents as backtracking subsets (order free).