File tree Expand file tree Collapse file tree 6 files changed +7
-25
lines changed
solution/0400-0499/0449.Serialize and Deserialize BST Expand file tree Collapse file tree 6 files changed +7
-25
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - uses : actions/checkout@v3
17
+ - uses : actions/checkout@v4
18
18
- uses : jpetrucciani/black-check@master
19
19
with :
20
20
black_flags : ' -S'
Original file line number Diff line number Diff line change 1
1
name : clang-format-linter
2
2
3
3
on :
4
- pull_request_target :
5
- types :
6
- - opened
7
- - edited
8
- - synchronize
9
- branches :
10
- - main
4
+ push : {}
5
+ pull_request : {}
11
6
12
7
jobs :
13
8
build :
14
9
runs-on : ubuntu-latest
15
10
16
11
steps :
17
- - uses : actions/checkout@v3
18
-
19
- - uses : DoozyX/clang-format-lint-action@v0.13
12
+ - uses : actions/checkout@v4
13
+ - uses : DoozyX/clang-format-lint-action@v0.16.2
20
14
with :
21
15
source : ' .'
22
16
extensions : ' c,cpp,java'
23
- clangFormatVersion : 12
24
- inplace : True
25
-
26
- - uses : EndBug/add-and-commit@v9
27
- with :
28
- committer_name : yanglbme
29
- committer_email : contact@yanglibin.info
30
- message : ' chore: format code with clang-format'
31
- env :
32
- GITHUB_TOKEN : ${{ secrets.ACTION_TOKEN }}
17
+ clangFormatVersion : 16
Original file line number Diff line number Diff line change 29
29
github.event.pull_request.head.repo.full_name == github.repository)
30
30
steps :
31
31
- name : Checkout Branch
32
- uses : actions/checkout@v3
32
+ uses : actions/checkout@v4
33
33
- name : Compress Images
34
34
id : calibre
35
35
uses : calibreapp/image-actions@main
Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ public class Codec {
191
191
*/
192
192
class Codec {
193
193
public:
194
-
195
194
// Encodes a tree to a single string.
196
195
string serialize(TreeNode* root) {
197
196
if (!root) {
Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ public class Codec {
166
166
*/
167
167
class Codec {
168
168
public:
169
-
170
169
// Encodes a tree to a single string.
171
170
string serialize(TreeNode* root) {
172
171
if (!root) {
Original file line number Diff line number Diff line change 9
9
*/
10
10
class Codec {
11
11
public:
12
-
13
12
// Encodes a tree to a single string.
14
13
string serialize (TreeNode* root) {
15
14
if (!root) {
You can’t perform that action at this time.
0 commit comments