Skip to main content

Practice ยท 3 of 3

Findings Prioritizer

Write prioritize(findings) โ€” findings is an array of { id, severity } where severity is "critical" | "high" | "medium" | "low". Return the ids sorted by severity (critical first), stable within the same severity (preserve input order). Include summary(findings) returning counts per severity as { critical, high, medium, low } (zeros included).

Difficulty: intermediate

Back to lesson: Practice: Secure the App โ€” Practice