feat(patterns): pattern taxonomy + is_optimal

This commit is contained in:
2025-09-08 16:03:14 +01:00
parent dfe76ad1ee
commit 7a5d079fc6
28 changed files with 1434 additions and 26 deletions
@@ -39,6 +39,7 @@ export function QuestionCard({ question }: QuestionCardProps) {
{question.patterns.map((p) => (
<Badge key={p.id} variant="pattern">
{p.name}
{p.is_optimal && <span className="ml-1 text-green-500"></span>}
</Badge>
))}
{question.leetcode_id && (