Skip to content

Commit

Permalink
fix table alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad-A0 committed Aug 21, 2022
1 parent 2f60536 commit bb63f4e
Show file tree
Hide file tree
Showing 156 changed files with 161 additions and 6,386 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/updateCompletionTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,30 +507,24 @@ const buildTableColumn = (
}

tableMatrix[0].push(language);
for (const [index, complete] of Object.entries(Object.values(checkbox))) {
tableMatrix[+index + 1].push(complete);
for (const [index, [, problemNumber]] of Object.entries(
Object.values(problems)
)) {
tableMatrix[+index + 1].push(checkbox[problemNumber]);
}
};

const makeMarkdown = (table, urls) => {
return [
table[0]
.map(
(cell) =>
`<small><small><small>${
FOLDER_TO_LANG[cell] || cell
}</small></small></small>`
)
.map((cell) => `<sub>${FOLDER_TO_LANG[cell] || cell}</sub>`)
.join(' | '),
table[0].map(() => '----').join(' | '),
...table.slice(1).map((row, rowIndex) =>
row
.map((cell, index) => {
if (index == 0)
return `<small><small><small>[${cell}](${urls[rowIndex]})</small></small></small>`;
return cell
? "<small><div align='center'>✔️</div></small>"
: "<small><div align='center'>❌</div></small>";
if (index == 0) return `<sub>[${cell}](${urls[rowIndex]})</sub>`;
return `<sub><div align='center'>${cell ? "✔️" : "❌"}</div></sub>`
})
.join(' | ')
),
Expand Down
304 changes: 154 additions & 150 deletions README.md

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions javascript/1-Two-Sum.js

This file was deleted.

37 changes: 0 additions & 37 deletions javascript/10-Regular-Expression-Matching.js

This file was deleted.

18 changes: 0 additions & 18 deletions javascript/100-Same-Tree.js

This file was deleted.

32 changes: 0 additions & 32 deletions javascript/102-Binary-Tree-Level-Order-Traversal.js

This file was deleted.

23 changes: 0 additions & 23 deletions javascript/104-Maximum-Depth-of-Binary-Tree.js

This file was deleted.

73 changes: 0 additions & 73 deletions javascript/1046-Last-Stone-Weight.js

This file was deleted.

This file was deleted.

35 changes: 0 additions & 35 deletions javascript/11-Container-With-Most-Water.js

This file was deleted.

31 changes: 0 additions & 31 deletions javascript/110-Balanced-Binary-Tree.js

This file was deleted.

16 changes: 0 additions & 16 deletions javascript/1143-Longest-Common-Subsequence.js

This file was deleted.

Loading

0 comments on commit bb63f4e

Please sign in to comment.