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 887996a commit c9ac6eeCopy full SHA for c9ac6ee
cpp.run.js
@@ -44,7 +44,7 @@ plugin.testProblem = function(problem, cb) {
44
// array, list, tree, etc
45
var t = meta.params[i].type;
46
if (t.indexOf('[]') >= 0 || t === 'ListNode' || t === 'TreeNode')
47
- x = x.replace('[', '{').replace(']', '}');
+ x = x.replace(/\[/g, '{').replace(/\]/g, '}');
48
if (t === 'ListNode') x = 'make_listnode(' + x + ')';
49
if (t === 'TreeNode') x = 'make_treenode(' + x + ')';
50
0 commit comments