Add Vim exercises, cheatsheet, and project polish

Add code golf challenges for Vim practice, a weekly review template, and
extend the cheatsheet with high-frequency commands. Fix the calculator
`multiply` implementation and correct a logger import path.
This commit is contained in:
2026-05-31 23:01:37 +08:00
parent 03f3114503
commit e8dfa0e2f1
14 changed files with 274 additions and 7 deletions
+1 -5
View File
@@ -12,11 +12,7 @@ export class Calculator {
}
multiply(a: number, b: number): number {
let result = 0;
for (let i = 0; i < Math.abs(b); i++) {
result += a;
}
return b < 0 ? -result : result;
return a * b;
}
divide(a: number, b: number): number {