Symptom
When using SkillGapStrategy, level 5 courses get scores in the hundreds or thousands -- way beyond the expected 0-100 range.
Expected: Scores should stay within a reasonable range thanks to the clamped multiplier.
Context
The base Strategy.applyLevelWeight() clamps the multiplier to max 10 via Math.min(level * 2, 10). The SkillGapStrategy overrides this method with its own multiplier formula but omits the clamp.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code