mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 12:43:12 +08:00
contents(algo): update to latest Grind 75 order
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,22 @@ import React from 'react';
|
|||||||
|
|
||||||
import QuestionGroups from './QuestionGroups.json';
|
import QuestionGroups from './QuestionGroups.json';
|
||||||
|
|
||||||
|
function DifficultyLabel({difficulty}) {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
style={{
|
||||||
|
fontWeight: 600,
|
||||||
|
color: {
|
||||||
|
Easy: 'rgb(0, 184, 163)',
|
||||||
|
Medium: 'rgb(255, 192, 30)',
|
||||||
|
Hard: 'rgb(255, 55, 95)',
|
||||||
|
}[difficulty],
|
||||||
|
}}>
|
||||||
|
{difficulty}
|
||||||
|
</span>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export default function QuestionList() {
|
export default function QuestionList() {
|
||||||
return (
|
return (
|
||||||
<div className="padding-vert--lg">
|
<div className="padding-vert--lg">
|
||||||
@ -28,7 +44,9 @@ export default function QuestionList() {
|
|||||||
{question.title}
|
{question.title}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{question.difficulty}</td>
|
<td>
|
||||||
|
<DifficultyLabel difficulty={question.difficulty} />
|
||||||
|
</td>
|
||||||
<td>{question.duration} mins</td>
|
<td>{question.duration} mins</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
Reference in New Issue
Block a user