Skip to content

Commit c54849d

Browse files
committed
feat: updated the yml and cpp files
1 parent 24379ec commit c54849d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/leetcode_directory_writer.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
- name: Add python dependencies
1919
run: |
2020
pip install requests
21+
- name: Write LeetCode DIRECTORY.md
22+
run: |
23+
python3 scripts/leetcode_directory_md.py 2>&1 | tee leetcode/DIRECTORY.md
2124
- name: Commit and push changes
2225
uses: stefanzweifel/git-auto-commit-action@v4
2326
id: commit-push

leetcode/src/2.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ struct ListNode {
1212
int val;
1313
ListNode *next;
1414
explicit ListNode() : val(0), next(nullptr) {}
15-
ListNode(int x) : val(x), next(nullptr) {}
16-
ListNode(int x, ListNode *next) : val(x), next(next) {}
15+
explicit ListNode(int x) : val(x), next(nullptr) {}
16+
explicit ListNode(int x, ListNode *next) : val(x), next(next) {}
1717
};
1818

1919
class Solution {

0 commit comments

Comments
 (0)