We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2cb5ae commit a6b1a57Copy full SHA for a6b1a57
plugins/lintcode.js
@@ -39,6 +39,14 @@ const LANGS = [
39
{value: 'python', text: 'Python'}
40
];
41
42
+const LEVELS = {
43
+ 0: 'Naive',
44
+ 1: 'Easy',
45
+ 2: 'Medium',
46
+ 3: 'Hard',
47
+ 4: 'Super'
48
+};
49
+
50
var spin;
51
52
function signOpts(opts, user) {
@@ -126,7 +134,7 @@ plugin.getPageProblems = function(page, cb) {
126
134
name: p.title,
127
135
slug: p.unique_name,
128
136
category: 'lintcode',
129
- level: h.levelToName(p.level),
137
+ level: LEVELS[p.level],
130
138
locked: false,
131
139
percent: p.accepted_rate,
132
140
starred: p.is_favorited,
0 commit comments