Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fddfa9

Browse filesBrowse files
committed
remove debug
1 parent 4209275 commit 7fddfa9
Copy full SHA for 7fddfa9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎day5/program.js

Copy file name to clipboardExpand all lines: day5/program.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function extractStacks(data) {
1212
}
1313

1414
const containerRows = [];
15-
// use a while loop to loop through data until a row has a 1 on position 2 in the string
15+
1616
let i = 0;
1717
while (i < data.length) {
1818
if (data[i][1] === '1') {
@@ -28,10 +28,8 @@ function extractStacks(data) {
2828
parts.forEach((part, i) => {
2929
if (part === '') return pos++;
3030
if (part.substr(0,1) === '[') pos += 4;
31-
console.log(pos, part);
3231
const stackNum = pos/4-1;
3332
stacks[stackNum].unshift(part);
3433
});
3534
});
36-
console.log(stacks);
3735
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.