[Docs]Add documentation of Learner perspectives to the Academy page
Description: The Academy documentation currently lacks clear, distinct descriptions of functionality from the Learner perspective.
Contributor Guide and Resources
- π Instructions for contributing to documentation
- π¨ Wireframes and designs for Layer5 site in Figma (open invite)
- ππΎππΌ Questions: Layer5 Discussion Forum and Layer5 Community Slack
/ for a given attempt in a test bank.
//
// It divides a total set of questions into fixed-size chunks (sets), and cycles
// through them as attempts progress. Once the end of the question bank is reached,
// the next attempt wraps around to the beginning.
//
// Parameters:
// - totalQuestions: total number of questions in the test bank.
// - setSize: number of questions to include in each attempt.
// - attemptNumber: the current attempt number (starting from 1).
//
// The returned range [start, end) can be used to slice a question list.
//
// Example:
//
// totalQuestions := 25
// setSize := 5
//
// GetQuestionRange(totalQuestions, setSize, 1) // β (0, 5)
// GetQuestionRange(totalQuestions, setSize, 2) // β (5, 10)
// GetQuestionRange(totalQuestions, setSize, 6) // β (0, 5)
//
// Note: This version does not wrap mid-set. If start + setSize exceeds
// totalQuestions, the end value is capped at totalQuestions.