Practice · 1 of 1
A Hand-Written Stride View
CHALLENGE
Difficulty: advanced+25 XP
Implement strideView(vec, k) returning a type with begin()/end() that walks every k-th element (k >= 1). Iterate the returned view in the usual range-for.
Press Submit to check your solution.
Back to lesson: Practice: Build a View