From bae0b457349eb66c05fc531f52c79e525f86555f Mon Sep 17 00:00:00 2001 From: liubang Date: Sat, 29 Jun 2024 17:55:48 +0800 Subject: [PATCH] update --- header.py | 62 +++++++++++++++++++ include/list.h | 18 ++++-- include/tree.h | 18 ++++-- include/uf.h | 24 ++++--- src/1006.clumsy-factorial.cc | 16 +++++ src/101.symmetric-tree.cc | 18 ++++-- ...gs-with-total-durations-divisible-by-60.cc | 18 ++++-- ...ing-with-substrings-representing-1-to-n.cc | 18 ++++-- src/1019.next-greater-node-in-linked-list.cc | 18 ++++-- src/102.binary-tree-level-order-traversal.cc | 18 ++++-- src/1023.camelcase-matching.cc | 18 ++++-- src/1027.longest-arithmetic-subsequence.cc | 18 ++++-- ...um-sum-of-two-non-overlapping-subarrays.cc | 18 ++++-- src/1035.uncrossed-lines.cc | 18 ++++-- src/104.maximum-depth-of-binary-tree.cc | 18 ++++-- src/1041.robot-bounded-in-circle.cc | 18 ++++-- src/1042.flower-planting-with-no-adjacent.cc | 18 ++++-- ...emove-all-adjacent-duplicates-in-string.cc | 18 ++++-- ...ree-from-preorder-and-inorder-traversal.cc | 18 ++++-- src/1052.grumpy-bookstore-owner.cc | 18 ++++-- src/110.balanced-binary-tree.cc | 18 ++++-- src/112.path-sum.cc | 18 ++++-- src/113.path-sum-ii.cc | 18 ++++-- src/1143.longest-common-subsequence.cc | 18 ++++-- src/118.pascals-triangle.cc | 18 ++++-- src/119.pascals-triangle-ii.cc | 18 ++++-- ...trings-between-each-pair-of-parentheses.cc | 16 +++++ src/12.integer-to-roman.cc | 16 +++++ src/121.best-time-to-buy-and-sell-stock.cc | 16 +++++ src/122.best-time-to-buy-and-sell-stock-ii.cc | 16 +++++ src/124.binary-tree-maximum-path-sum.cc | 16 +++++ src/125.valid-palindrome.cc | 16 +++++ ...stay-in-the-same-place-after-some-steps.cc | 16 +++++ src/128.longest-consecutive-sequence.cc | 16 +++++ src/129.sum-root-to-leaf-numbers.cc | 18 ++++-- src/13.roman-to-integer.cc | 16 +++++ src/1310.xor-queries-of-a-subarray.cc | 16 +++++ src/136.single-number.cc | 16 +++++ src/141.linked-list-cycle.cc | 16 +++++ src/1419.minimum-number-of-frogs-croaking.cc | 18 ++++-- src/142.linked-list-cycle-ii.cc | 16 +++++ src/143.reorder-list.cc | 16 +++++ src/144.binary-tree-preorder-traversal.cc | 16 +++++ ...s-that-can-form-two-arrays-of-equal-xor.cc | 16 +++++ src/146.lru-cache.cc | 16 +++++ src/1486.xor-operation-in-an-array.cc | 16 +++++ src/15.3sum.cc | 16 +++++ src/150.evaluate-reverse-polish-notation.cc | 16 +++++ src/151.reverse-words-in-a-string.cc | 16 +++++ ...53.find-minimum-in-rotated-sorted-array.cc | 16 +++++ ...find-minimum-in-rotated-sorted-array-ii.cc | 16 +++++ src/162.find-peak-element.cc | 16 +++++ src/165.compare-version-numbers.cc | 16 +++++ src/169.majority-element.cc | 16 +++++ src/171.excel-sheet-column-number.cc | 16 +++++ src/172.factorial-trailing-zeroes.cc | 16 +++++ src/1720.decode-xored-array.cc | 16 +++++ src/173.binary-search-tree-iterator.cc | 16 +++++ src/1734.decode-xored-permutation.cc | 16 +++++ ...8.find-kth-largest-xor-coordinate-value.cc | 16 +++++ src/179.largest-number.cc | 16 +++++ src/19.remove-nth-node-from-end-of-list.cc | 16 +++++ src/190.reverse-bits.cc | 16 +++++ src/191.number-of-1-bits.cc | 16 +++++ src/198.house-robber.cc | 18 ++++-- src/199.binary-tree-right-side-view.cc | 16 +++++ src/2.add-two-numbers.cc | 16 +++++ src/20.valid-parentheses.cc | 16 +++++ src/200.number-of-islands.cc | 16 +++++ src/203.remove-linked-list-elements.cc | 16 +++++ src/206.reverse-linked-list.cc | 16 +++++ src/208.implement-trie-prefix-tree.cc | 16 +++++ src/213.house-robber-ii.cc | 16 +++++ src/215.kth-largest-element-in-an-array.cc | 16 +++++ src/219.contains-duplicate-ii.cc | 16 +++++ src/22.generate-parentheses.cc | 16 +++++ src/224.basic-calculator.cc | 16 +++++ src/225.implement-stack-using-queues.cc | 16 +++++ src/226.invert-binary-tree.cc | 16 +++++ src/227.basic-calculator-ii.cc | 16 +++++ src/23.merge-k-sorted-lists.cc | 18 ++++-- src/230.surrounded-regions.cc | 16 +++++ src/232.implement-queue-using-stacks.cc | 16 +++++ src/234.palindrome-linked-list.cc | 16 +++++ ...lowest-common-ancestor-of-a-binary-tree.cc | 16 +++++ src/239.sliding-window-maximum.cc | 16 +++++ ...99.check-distances-between-same-letters.cc | 16 +++++ src/24.swap-nodes-in-pairs.cc | 16 +++++ src/240.search-a-2d-matrix-ii.cc | 16 +++++ src/2404.most-frequent-even-element.cc | 16 +++++ src/2413.smallest-even-multiple.cc | 18 ++++-- src/2418.sort-the-people.cc | 18 ++++-- ...mployee-that-worked-on-the-longest-task.cc | 18 ++++-- src/2437.number-of-valid-clock-times.cc | 18 ++++-- ...e-integer-that-exists-with-its-negative.cc | 18 ++++-- ...6.determine-if-two-events-have-conflict.cc | 18 ++++-- src/2559.count-vowel-strings-in-ranges.cc | 18 ++++-- src/257.binary-tree-paths.cc | 16 +++++ src/263.ugly-number.cc | 16 +++++ src/27.remove-element.cc | 16 +++++ ...710.remove-trailing-zeros-from-a-string.cc | 16 +++++ src/279.perfect-squares.cc | 18 ++++-- src/28.implement-strstr.cc | 16 +++++ ...-substring-without-repeating-characters.cc | 16 +++++ src/31.next-permutation.cc | 16 +++++ src/32.longest-valid-parentheses.cc | 16 +++++ src/322.coin-change.cc | 18 ++++-- ...preorder-serialization-of-a-binary-tree.cc | 16 +++++ ...ast-position-of-element-in-sorted-array.cc | 16 +++++ src/341.flatten-nested-list-iterator.cc | 16 +++++ src/342.power-of-four.cc | 16 +++++ src/35.search-insert-position.cc | 16 +++++ src/38.count-and-say.cc | 16 +++++ src/4.median-of-two-sorted-arrays.cc | 16 +++++ src/402.remove-k-digits.cc | 16 +++++ src/404.sum-of-left-leaves.cc | 16 +++++ src/41.first-missing-positive.cc | 16 +++++ src/415.add-strings.cc | 16 +++++ src/416.partition-equal-subset-sum.cc | 18 ++++-- ....maximum-xor-of-two-numbers-in-an-array.cc | 16 +++++ src/451.sort-characters-by-frequency.cc | 16 +++++ ...3.minimum-moves-to-equal-array-elements.cc | 16 +++++ src/456.132-pattern.cc | 16 +++++ src/46.permutations.cc | 16 +++++ src/461.hamming-distance.cc | 16 +++++ src/463.island-perimeter.cc | 16 +++++ src/470.implement-rand10-using-rand7.cc | 16 +++++ src/481.magical-string.cc | 16 +++++ src/485.max-consecutive-ones.cc | 16 +++++ src/494.target-sum.cc | 18 ++++-- src/5.longest-palindromic-substring.cc | 16 +++++ src/518.coin-change-ii.cc | 18 ++++-- src/539.minimum-time-difference.cc | 16 +++++ src/54.spiral-matrix.cc | 16 +++++ src/543.diameter-of-binary-tree.cc | 16 +++++ src/55.jump-game.cc | 16 +++++ src/56.merge-intervals.cc | 16 +++++ src/58.length-of-last-word.cc | 16 +++++ src/59.spiral-matrix-ii.cc | 16 +++++ src/6.zigzag-conversion.cc | 16 +++++ src/61.rotate-list.cc | 16 +++++ src/62.unique-paths.cc | 16 +++++ src/64.minimum-path-sum.cc | 16 +++++ src/66.plus-one.cc | 16 +++++ src/67.add-binary.cc | 16 +++++ ...71.second-minimum-node-in-a-binary-tree.cc | 16 +++++ src/68.valid-palindrome-ii.cc | 16 +++++ src/692.top-k-frequent-words.cc | 16 +++++ ...693.binary-number-with-alternating-bits.cc | 16 +++++ src/7.reverse-integer.cc | 16 +++++ src/70.climbing-stairs.cc | 16 +++++ src/704.binary-search.cc | 16 +++++ ...718.maximum-length-of-repeated-subarray.cc | 16 +++++ src/74.search-a-2d-matrix.cc | 16 +++++ src/766.toeplitz-matrix.cc | 16 +++++ src/78.subsets.cc | 16 +++++ src/783.minimum-distance-between-bst-nodes.cc | 16 +++++ src/79.word-search.cc | 16 +++++ src/8.string-to-integer-atoi.cc | 16 +++++ ....remove-duplicates-from-sorted-array-ii.cc | 16 +++++ ...2.remove-duplicates-from-sorted-list-ii.cc | 16 +++++ src/83.remove-duplicates-from-sorted-list.cc | 16 +++++ src/832.flipping-an-image.cc | 16 +++++ src/84.largest-rectangle-in-histogram.cc | 16 +++++ src/867.transpose-matrix.cc | 16 +++++ src/872.leaf-similar-trees.cc | 16 +++++ src/88.merge-sorted-array.cc | 16 +++++ src/90.subsets-ii.cc | 16 +++++ src/912.sort-an-array.cc | 16 +++++ src/92.reverse-linked-list-ii.cc | 16 +++++ src/94.binary-tree-inorder-traversal.cc | 16 +++++ ...958.check-completeness-of-a-binary-tree.cc | 16 +++++ src/98.validate-binary-search-tree.cc | 16 +++++ ...90.satisfiability-of-equality-equations.cc | 16 +++++ src/lcci-0105.one-away-lcci.cc | 16 +++++ src/lcci-0106.compress-string-lcci.cc | 16 +++++ src/lcci-0107.rotate-matrix-lcci.cc | 16 +++++ src/lcci-0108.zero-matrix-lcci.cc | 16 +++++ src/lcci-0109.string-rotation-lcci.cc | 16 +++++ src/lcci-0302.min-stack-lcci.cc | 16 +++++ ...-0304.implement-queue-using-stacks-lcci.cc | 16 +++++ src/lcci-0305.sort-of-stacks-lcci.cc | 16 +++++ src/lcci-0403.list-of-depth-lcci.cc | 18 ++++-- src/lcci-1626.calculator-lcci.cc | 16 +++++ src/lcci-1721.volume-of-histogram-lcci.cc | 16 +++++ ...ong-liang-ge-zhan-shi-xian-dui-lie-lcof.cc | 16 +++++ ...f-13.ji-qi-ren-de-yun-dong-fan-wei-lcof.cc | 16 +++++ ...shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof.cc | 16 +++++ src/lcof-26.shu-de-zi-jie-gou-lcof.cc | 16 +++++ ...hang-dao-xia-da-yin-er-cha-shu-iii-lcof.cc | 16 +++++ ...ng-shang-dao-xia-da-yin-er-cha-shu-lcof.cc | 16 +++++ ...cha-sou-suo-shu-de-di-kda-jie-dian-lcof.cc | 16 +++++ ...zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof.cc | 16 +++++ ....hua-dong-chuang-kou-de-zui-da-zhi-lcof.cc | 16 +++++ src/lcof-60.nge-tou-zi-de-dian-shu-lcof.cc | 16 +++++ ...lcof-61.bu-ke-pai-zhong-de-shun-zi-lcof.cc | 16 +++++ ...-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cc | 16 +++++ ...yong-jia-jian-cheng-chu-zuo-jia-fa-lcof.cc | 16 +++++ src/lcof-66.gou-jian-cheng-ji-shu-zu-lcof.cc | 16 +++++ src/lcp-34-er-cha-shu-ran-se-UGC.cc | 16 +++++ 200 files changed, 3125 insertions(+), 209 deletions(-) create mode 100644 header.py diff --git a/header.py b/header.py new file mode 100644 index 00000000..9c91fbf1 --- /dev/null +++ b/header.py @@ -0,0 +1,62 @@ +import os +import re + +def replace_or_add_header(file_path, old_header_start, old_header_end, new_header): + with open(file_path, 'r', encoding='utf-8') as f: + content = f.read() + + # Check if the new header already exists + if new_header in content: + print(f"New header already exists in {file_path}, skipping.") + return + + # Define the regex pattern for the old header + pattern = re.compile(rf"{old_header_start}.*?{old_header_end}", re.DOTALL) + + # Check if the old header exists + if pattern.search(content): + # Replace the old header with the new header + new_content = pattern.sub(new_header, content) + print(f"Replaced old header in {file_path}") + else: + # Add the new header if no old header found + new_content = new_header + '\n' + content + print(f"Added new header to {file_path}") + + # Write the new content back to the file + with open(file_path, 'w', encoding='utf-8') as f: + f.write(new_content) + +def add_or_replace_header_in_directory(directory_path, old_header_start, old_header_end, new_header, file_extensions=['.h', '.cc']): + for root, _, files in os.walk(directory_path): + for file_name in files: + if any(file_name.endswith(ext) for ext in file_extensions): + file_path = os.path.join(root, file_name) + replace_or_add_header(file_path, old_header_start, old_header_end, new_header) + +# Old header delimiters +old_header_start = "//=====================================================================" +old_header_end = "//=====================================================================" + +# New header content +new_header = """\ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) +""" + +directory_path = './' + +add_or_replace_header_in_directory(directory_path, old_header_start, old_header_end, new_header) diff --git a/include/list.h b/include/list.h index 34765029..1d572f5d 100644 --- a/include/list.h +++ b/include/list.h @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// list.h - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:18 -// Last Modified: 2023/11/30 23:18 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #pragma once #include diff --git a/include/tree.h b/include/tree.h index 514c8946..af3af333 100644 --- a/include/tree.h +++ b/include/tree.h @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// tree.h - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:18 -// Last Modified: 2023/11/30 23:18 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #pragma once #include diff --git a/include/uf.h b/include/uf.h index e892f9b0..888c3bdc 100644 --- a/include/uf.h +++ b/include/uf.h @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// uf.h - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:18 -// Last Modified: 2023/11/30 23:18 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #pragma once #include @@ -13,8 +21,7 @@ /* * union-find */ -namespace leetcode { -namespace uf { +namespace leetcode::uf { class UnionFind { public: @@ -83,5 +90,4 @@ class UnionFind { std::vector parent_; }; -} // namespace uf -} // namespace leetcode +} // namespace leetcode::uf diff --git a/src/1006.clumsy-factorial.cc b/src/1006.clumsy-factorial.cc index 896dfd4e..3a412f47 100644 --- a/src/1006.clumsy-factorial.cc +++ b/src/1006.clumsy-factorial.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/101.symmetric-tree.cc b/src/101.symmetric-tree.cc index 8d2083ea..f21ab254 100644 --- a/src/101.symmetric-tree.cc +++ b/src/101.symmetric-tree.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 101.symmetric-tree.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/15 17:45 -// Last Modified: 2023/04/15 17:45 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "tree.h" #include #include diff --git a/src/1010.pairs-of-songs-with-total-durations-divisible-by-60.cc b/src/1010.pairs-of-songs-with-total-durations-divisible-by-60.cc index 632d9c9b..17b74b06 100644 --- a/src/1010.pairs-of-songs-with-total-durations-divisible-by-60.cc +++ b/src/1010.pairs-of-songs-with-total-durations-divisible-by-60.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1010.pairs-of-songs-with-total-durations-divisible-by-60.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/07 14:23 -// Last Modified: 2023/05/07 14:23 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1016.binary-string-with-substrings-representing-1-to-n.cc b/src/1016.binary-string-with-substrings-representing-1-to-n.cc index 31b26834..968a8fab 100644 --- a/src/1016.binary-string-with-substrings-representing-1-to-n.cc +++ b/src/1016.binary-string-with-substrings-representing-1-to-n.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1016.binary-string-with-substrings-representing-1-to-n.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/11 01:12 -// Last Modified: 2023/05/11 01:12 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1019.next-greater-node-in-linked-list.cc b/src/1019.next-greater-node-in-linked-list.cc index 0e0c8223..df9fa41b 100644 --- a/src/1019.next-greater-node-in-linked-list.cc +++ b/src/1019.next-greater-node-in-linked-list.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1019.next-greater-node-in-linked-list.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/102.binary-tree-level-order-traversal.cc b/src/102.binary-tree-level-order-traversal.cc index d5ca14c1..287d1e94 100644 --- a/src/102.binary-tree-level-order-traversal.cc +++ b/src/102.binary-tree-level-order-traversal.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 102.binary-tree-level-order-traversal.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/15 17:45 -// Last Modified: 2023/04/15 17:45 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "tree.h" #include #include diff --git a/src/1023.camelcase-matching.cc b/src/1023.camelcase-matching.cc index a05f0ca8..a8e0f96b 100644 --- a/src/1023.camelcase-matching.cc +++ b/src/1023.camelcase-matching.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1023.camelcase-matching.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1027.longest-arithmetic-subsequence.cc b/src/1027.longest-arithmetic-subsequence.cc index 6390dc74..ae5b097e 100644 --- a/src/1027.longest-arithmetic-subsequence.cc +++ b/src/1027.longest-arithmetic-subsequence.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1027.longest-arithmetic-subsequence.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/23 00:28 -// Last Modified: 2023/04/23 00:28 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1031.maximum-sum-of-two-non-overlapping-subarrays.cc b/src/1031.maximum-sum-of-two-non-overlapping-subarrays.cc index 1fda2e90..07ceb538 100644 --- a/src/1031.maximum-sum-of-two-non-overlapping-subarrays.cc +++ b/src/1031.maximum-sum-of-two-non-overlapping-subarrays.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1031.maximum-sum-of-two-non-overlapping-subarrays.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/26 01:22 -// Last Modified: 2023/04/26 01:22 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include diff --git a/src/1035.uncrossed-lines.cc b/src/1035.uncrossed-lines.cc index 1fc6e01b..04c15d20 100644 --- a/src/1035.uncrossed-lines.cc +++ b/src/1035.uncrossed-lines.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1035.uncrossed-lines.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/104.maximum-depth-of-binary-tree.cc b/src/104.maximum-depth-of-binary-tree.cc index c17b5b43..537e96b5 100644 --- a/src/104.maximum-depth-of-binary-tree.cc +++ b/src/104.maximum-depth-of-binary-tree.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 104.maximum-depth-of-binary-tree.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/1041.robot-bounded-in-circle.cc b/src/1041.robot-bounded-in-circle.cc index 7783e88f..348a4c7c 100644 --- a/src/1041.robot-bounded-in-circle.cc +++ b/src/1041.robot-bounded-in-circle.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1041.robot-bounded-in-circle.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1042.flower-planting-with-no-adjacent.cc b/src/1042.flower-planting-with-no-adjacent.cc index 0cd0f053..6af49f3d 100644 --- a/src/1042.flower-planting-with-no-adjacent.cc +++ b/src/1042.flower-planting-with-no-adjacent.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1042.flower-planting-with-no-adjacent.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1047.remove-all-adjacent-duplicates-in-string.cc b/src/1047.remove-all-adjacent-duplicates-in-string.cc index a7e6fbae..ea1b5986 100644 --- a/src/1047.remove-all-adjacent-duplicates-in-string.cc +++ b/src/1047.remove-all-adjacent-duplicates-in-string.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1047.remove-all-adjacent-duplicates-in-string.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/105.construct-binary-tree-from-preorder-and-inorder-traversal.cc b/src/105.construct-binary-tree-from-preorder-and-inorder-traversal.cc index 335ec868..aafe6cdb 100644 --- a/src/105.construct-binary-tree-from-preorder-and-inorder-traversal.cc +++ b/src/105.construct-binary-tree-from-preorder-and-inorder-traversal.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 105.construct-binary-tree-from-preorder-and-inorder-traversal.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/23 11:39 -// Last Modified: 2023/04/23 11:39 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "tree.h" #include diff --git a/src/1052.grumpy-bookstore-owner.cc b/src/1052.grumpy-bookstore-owner.cc index 4bff783a..6fbfaf0b 100644 --- a/src/1052.grumpy-bookstore-owner.cc +++ b/src/1052.grumpy-bookstore-owner.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1052.grumpy-bookstore-owner.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:08 -// Last Modified: 2023/11/30 23:08 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/110.balanced-binary-tree.cc b/src/110.balanced-binary-tree.cc index a962e404..a290a6ea 100644 --- a/src/110.balanced-binary-tree.cc +++ b/src/110.balanced-binary-tree.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 110.balanced-binary-tree.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:09 -// Last Modified: 2023/11/30 23:09 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/112.path-sum.cc b/src/112.path-sum.cc index bbeb5b0f..c67d59f0 100644 --- a/src/112.path-sum.cc +++ b/src/112.path-sum.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 112.path-sum.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:09 -// Last Modified: 2023/11/30 23:09 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/113.path-sum-ii.cc b/src/113.path-sum-ii.cc index b3abe1e8..a0315932 100644 --- a/src/113.path-sum-ii.cc +++ b/src/113.path-sum-ii.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 113.path-sum-ii.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/15 17:47 -// Last Modified: 2023/04/15 17:47 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "tree.h" #include #include diff --git a/src/1143.longest-common-subsequence.cc b/src/1143.longest-common-subsequence.cc index 916a5adf..551df4af 100644 --- a/src/1143.longest-common-subsequence.cc +++ b/src/1143.longest-common-subsequence.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1143.longest-common-subsequence.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:09 -// Last Modified: 2023/11/30 23:09 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/118.pascals-triangle.cc b/src/118.pascals-triangle.cc index 752dd83a..94abfa67 100644 --- a/src/118.pascals-triangle.cc +++ b/src/118.pascals-triangle.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 118.pascals-triangle.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:09 -// Last Modified: 2023/11/30 23:09 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/119.pascals-triangle-ii.cc b/src/119.pascals-triangle-ii.cc index a2ed6070..c7bb9c91 100644 --- a/src/119.pascals-triangle-ii.cc +++ b/src/119.pascals-triangle-ii.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 119.pascals-triangle-ii.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/11/30 23:09 -// Last Modified: 2023/11/30 23:09 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1190.reverse-substrings-between-each-pair-of-parentheses.cc b/src/1190.reverse-substrings-between-each-pair-of-parentheses.cc index 7d75f20e..fdc8be15 100644 --- a/src/1190.reverse-substrings-between-each-pair-of-parentheses.cc +++ b/src/1190.reverse-substrings-between-each-pair-of-parentheses.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/12.integer-to-roman.cc b/src/12.integer-to-roman.cc index 1ed5974b..b6cee1f4 100644 --- a/src/12.integer-to-roman.cc +++ b/src/12.integer-to-roman.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/121.best-time-to-buy-and-sell-stock.cc b/src/121.best-time-to-buy-and-sell-stock.cc index 94ac1d39..a8f87126 100644 --- a/src/121.best-time-to-buy-and-sell-stock.cc +++ b/src/121.best-time-to-buy-and-sell-stock.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/122.best-time-to-buy-and-sell-stock-ii.cc b/src/122.best-time-to-buy-and-sell-stock-ii.cc index 46ebe827..8e9d9e9a 100644 --- a/src/122.best-time-to-buy-and-sell-stock-ii.cc +++ b/src/122.best-time-to-buy-and-sell-stock-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/124.binary-tree-maximum-path-sum.cc b/src/124.binary-tree-maximum-path-sum.cc index 1b561d70..edc40998 100644 --- a/src/124.binary-tree-maximum-path-sum.cc +++ b/src/124.binary-tree-maximum-path-sum.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/125.valid-palindrome.cc b/src/125.valid-palindrome.cc index 633c486e..6c7b27f8 100644 --- a/src/125.valid-palindrome.cc +++ b/src/125.valid-palindrome.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1269.number-of-ways-to-stay-in-the-same-place-after-some-steps.cc b/src/1269.number-of-ways-to-stay-in-the-same-place-after-some-steps.cc index 7f76c045..33b1cc34 100644 --- a/src/1269.number-of-ways-to-stay-in-the-same-place-after-some-steps.cc +++ b/src/1269.number-of-ways-to-stay-in-the-same-place-after-some-steps.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/128.longest-consecutive-sequence.cc b/src/128.longest-consecutive-sequence.cc index ff083dbb..1495e851 100644 --- a/src/128.longest-consecutive-sequence.cc +++ b/src/128.longest-consecutive-sequence.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/129.sum-root-to-leaf-numbers.cc b/src/129.sum-root-to-leaf-numbers.cc index 962173c9..29f58e8b 100644 --- a/src/129.sum-root-to-leaf-numbers.cc +++ b/src/129.sum-root-to-leaf-numbers.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 129.sum-root-to-leaf-numbers.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/23 11:15 -// Last Modified: 2023/04/23 11:15 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "tree.h" #include diff --git a/src/13.roman-to-integer.cc b/src/13.roman-to-integer.cc index 35c2962a..dab8162e 100644 --- a/src/13.roman-to-integer.cc +++ b/src/13.roman-to-integer.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1310.xor-queries-of-a-subarray.cc b/src/1310.xor-queries-of-a-subarray.cc index 00d75b4c..511ab67b 100644 --- a/src/1310.xor-queries-of-a-subarray.cc +++ b/src/1310.xor-queries-of-a-subarray.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/136.single-number.cc b/src/136.single-number.cc index 3266792c..04f6bef7 100644 --- a/src/136.single-number.cc +++ b/src/136.single-number.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/141.linked-list-cycle.cc b/src/141.linked-list-cycle.cc index 8af661ea..654fae8c 100644 --- a/src/141.linked-list-cycle.cc +++ b/src/141.linked-list-cycle.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "list.h" diff --git a/src/1419.minimum-number-of-frogs-croaking.cc b/src/1419.minimum-number-of-frogs-croaking.cc index 43d0650f..5f53b270 100644 --- a/src/1419.minimum-number-of-frogs-croaking.cc +++ b/src/1419.minimum-number-of-frogs-croaking.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 1419.minimum-number-of-frogs-croaking.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/06 00:48 -// Last Modified: 2023/05/06 00:48 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/142.linked-list-cycle-ii.cc b/src/142.linked-list-cycle-ii.cc index f231f1e9..c0281fa1 100644 --- a/src/142.linked-list-cycle-ii.cc +++ b/src/142.linked-list-cycle-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/143.reorder-list.cc b/src/143.reorder-list.cc index 0151b82f..d05c383d 100644 --- a/src/143.reorder-list.cc +++ b/src/143.reorder-list.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/144.binary-tree-preorder-traversal.cc b/src/144.binary-tree-preorder-traversal.cc index b19b8a8f..ac876cfc 100644 --- a/src/144.binary-tree-preorder-traversal.cc +++ b/src/144.binary-tree-preorder-traversal.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1442.count-triplets-that-can-form-two-arrays-of-equal-xor.cc b/src/1442.count-triplets-that-can-form-two-arrays-of-equal-xor.cc index f60dbf79..f2cf9837 100644 --- a/src/1442.count-triplets-that-can-form-two-arrays-of-equal-xor.cc +++ b/src/1442.count-triplets-that-can-form-two-arrays-of-equal-xor.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/146.lru-cache.cc b/src/146.lru-cache.cc index e404baf5..b6b052e1 100644 --- a/src/146.lru-cache.cc +++ b/src/146.lru-cache.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1486.xor-operation-in-an-array.cc b/src/1486.xor-operation-in-an-array.cc index 02c967c6..0e506bb2 100644 --- a/src/1486.xor-operation-in-an-array.cc +++ b/src/1486.xor-operation-in-an-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/15.3sum.cc b/src/15.3sum.cc index ad3515ba..535acbc0 100644 --- a/src/15.3sum.cc +++ b/src/15.3sum.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/150.evaluate-reverse-polish-notation.cc b/src/150.evaluate-reverse-polish-notation.cc index d4f50186..34f2b066 100644 --- a/src/150.evaluate-reverse-polish-notation.cc +++ b/src/150.evaluate-reverse-polish-notation.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/151.reverse-words-in-a-string.cc b/src/151.reverse-words-in-a-string.cc index 71ed44d9..4edd66f4 100644 --- a/src/151.reverse-words-in-a-string.cc +++ b/src/151.reverse-words-in-a-string.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/153.find-minimum-in-rotated-sorted-array.cc b/src/153.find-minimum-in-rotated-sorted-array.cc index 6482248f..11a4b6e2 100644 --- a/src/153.find-minimum-in-rotated-sorted-array.cc +++ b/src/153.find-minimum-in-rotated-sorted-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/154.find-minimum-in-rotated-sorted-array-ii.cc b/src/154.find-minimum-in-rotated-sorted-array-ii.cc index 1c54cdf0..72ecd67e 100644 --- a/src/154.find-minimum-in-rotated-sorted-array-ii.cc +++ b/src/154.find-minimum-in-rotated-sorted-array-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/162.find-peak-element.cc b/src/162.find-peak-element.cc index 5f179071..28a4786d 100644 --- a/src/162.find-peak-element.cc +++ b/src/162.find-peak-element.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/165.compare-version-numbers.cc b/src/165.compare-version-numbers.cc index fc948f93..3870b69c 100644 --- a/src/165.compare-version-numbers.cc +++ b/src/165.compare-version-numbers.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/169.majority-element.cc b/src/169.majority-element.cc index 81d419d0..4f8f20a3 100644 --- a/src/169.majority-element.cc +++ b/src/169.majority-element.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/171.excel-sheet-column-number.cc b/src/171.excel-sheet-column-number.cc index 0f542125..843d0c53 100644 --- a/src/171.excel-sheet-column-number.cc +++ b/src/171.excel-sheet-column-number.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/172.factorial-trailing-zeroes.cc b/src/172.factorial-trailing-zeroes.cc index 1c7ee167..750a9ba6 100644 --- a/src/172.factorial-trailing-zeroes.cc +++ b/src/172.factorial-trailing-zeroes.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/1720.decode-xored-array.cc b/src/1720.decode-xored-array.cc index 3f46ae7d..1c4f15cd 100644 --- a/src/1720.decode-xored-array.cc +++ b/src/1720.decode-xored-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/173.binary-search-tree-iterator.cc b/src/173.binary-search-tree-iterator.cc index 6c25ea04..752ed52e 100644 --- a/src/173.binary-search-tree-iterator.cc +++ b/src/173.binary-search-tree-iterator.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/1734.decode-xored-permutation.cc b/src/1734.decode-xored-permutation.cc index b4afc548..05805011 100644 --- a/src/1734.decode-xored-permutation.cc +++ b/src/1734.decode-xored-permutation.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/1738.find-kth-largest-xor-coordinate-value.cc b/src/1738.find-kth-largest-xor-coordinate-value.cc index ba609f31..a88a92e0 100644 --- a/src/1738.find-kth-largest-xor-coordinate-value.cc +++ b/src/1738.find-kth-largest-xor-coordinate-value.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/179.largest-number.cc b/src/179.largest-number.cc index 7f006c2c..489e5bba 100644 --- a/src/179.largest-number.cc +++ b/src/179.largest-number.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/19.remove-nth-node-from-end-of-list.cc b/src/19.remove-nth-node-from-end-of-list.cc index a7bc7648..1e3d64ee 100644 --- a/src/19.remove-nth-node-from-end-of-list.cc +++ b/src/19.remove-nth-node-from-end-of-list.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/190.reverse-bits.cc b/src/190.reverse-bits.cc index 7493dfdd..00de215b 100644 --- a/src/190.reverse-bits.cc +++ b/src/190.reverse-bits.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/191.number-of-1-bits.cc b/src/191.number-of-1-bits.cc index 85e984f9..652b2990 100644 --- a/src/191.number-of-1-bits.cc +++ b/src/191.number-of-1-bits.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/198.house-robber.cc b/src/198.house-robber.cc index 1c69b85a..3284557c 100644 --- a/src/198.house-robber.cc +++ b/src/198.house-robber.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 198.house-robber.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/24 23:38 -// Last Modified: 2023/04/24 23:38 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/199.binary-tree-right-side-view.cc b/src/199.binary-tree-right-side-view.cc index 97abc20f..911d61ad 100644 --- a/src/199.binary-tree-right-side-view.cc +++ b/src/199.binary-tree-right-side-view.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2.add-two-numbers.cc b/src/2.add-two-numbers.cc index a7676482..6723485a 100644 --- a/src/2.add-two-numbers.cc +++ b/src/2.add-two-numbers.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "list.h" #include diff --git a/src/20.valid-parentheses.cc b/src/20.valid-parentheses.cc index 4eb4b87f..dfd627e1 100644 --- a/src/20.valid-parentheses.cc +++ b/src/20.valid-parentheses.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include #include diff --git a/src/200.number-of-islands.cc b/src/200.number-of-islands.cc index dcaff14b..b5e81ff7 100644 --- a/src/200.number-of-islands.cc +++ b/src/200.number-of-islands.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/203.remove-linked-list-elements.cc b/src/203.remove-linked-list-elements.cc index 65fc0b81..32ffdb50 100644 --- a/src/203.remove-linked-list-elements.cc +++ b/src/203.remove-linked-list-elements.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/206.reverse-linked-list.cc b/src/206.reverse-linked-list.cc index 2e261ecb..632078ff 100644 --- a/src/206.reverse-linked-list.cc +++ b/src/206.reverse-linked-list.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "list.h" diff --git a/src/208.implement-trie-prefix-tree.cc b/src/208.implement-trie-prefix-tree.cc index 029b390e..e9eb5f73 100644 --- a/src/208.implement-trie-prefix-tree.cc +++ b/src/208.implement-trie-prefix-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/213.house-robber-ii.cc b/src/213.house-robber-ii.cc index 88ab856b..80b33fbf 100644 --- a/src/213.house-robber-ii.cc +++ b/src/213.house-robber-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/215.kth-largest-element-in-an-array.cc b/src/215.kth-largest-element-in-an-array.cc index 6bbad869..83ca47e5 100644 --- a/src/215.kth-largest-element-in-an-array.cc +++ b/src/215.kth-largest-element-in-an-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/219.contains-duplicate-ii.cc b/src/219.contains-duplicate-ii.cc index 376531b0..e28034bf 100644 --- a/src/219.contains-duplicate-ii.cc +++ b/src/219.contains-duplicate-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/22.generate-parentheses.cc b/src/22.generate-parentheses.cc index ab7bd192..a3d518c7 100644 --- a/src/22.generate-parentheses.cc +++ b/src/22.generate-parentheses.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/224.basic-calculator.cc b/src/224.basic-calculator.cc index 3aaa9143..7d54ec08 100644 --- a/src/224.basic-calculator.cc +++ b/src/224.basic-calculator.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/225.implement-stack-using-queues.cc b/src/225.implement-stack-using-queues.cc index 9c90a32e..1f9fc214 100644 --- a/src/225.implement-stack-using-queues.cc +++ b/src/225.implement-stack-using-queues.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/226.invert-binary-tree.cc b/src/226.invert-binary-tree.cc index 2b4fe8a6..0dbc470d 100644 --- a/src/226.invert-binary-tree.cc +++ b/src/226.invert-binary-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/227.basic-calculator-ii.cc b/src/227.basic-calculator-ii.cc index 49be6383..789a3043 100644 --- a/src/227.basic-calculator-ii.cc +++ b/src/227.basic-calculator-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/23.merge-k-sorted-lists.cc b/src/23.merge-k-sorted-lists.cc index 9ed14365..7578e472 100644 --- a/src/23.merge-k-sorted-lists.cc +++ b/src/23.merge-k-sorted-lists.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 23.merge-k-sorted-lists.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/25 00:04 -// Last Modified: 2023/04/25 00:04 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "list.h" #include diff --git a/src/230.surrounded-regions.cc b/src/230.surrounded-regions.cc index 0492d7e4..fcae5465 100644 --- a/src/230.surrounded-regions.cc +++ b/src/230.surrounded-regions.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/232.implement-queue-using-stacks.cc b/src/232.implement-queue-using-stacks.cc index 00dea2f8..74afe1b0 100644 --- a/src/232.implement-queue-using-stacks.cc +++ b/src/232.implement-queue-using-stacks.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/234.palindrome-linked-list.cc b/src/234.palindrome-linked-list.cc index c4a2a02e..c9828cd6 100644 --- a/src/234.palindrome-linked-list.cc +++ b/src/234.palindrome-linked-list.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/236.lowest-common-ancestor-of-a-binary-tree.cc b/src/236.lowest-common-ancestor-of-a-binary-tree.cc index fd19a7ea..e11ef34c 100644 --- a/src/236.lowest-common-ancestor-of-a-binary-tree.cc +++ b/src/236.lowest-common-ancestor-of-a-binary-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/239.sliding-window-maximum.cc b/src/239.sliding-window-maximum.cc index 5c538687..8392abf4 100644 --- a/src/239.sliding-window-maximum.cc +++ b/src/239.sliding-window-maximum.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2399.check-distances-between-same-letters.cc b/src/2399.check-distances-between-same-letters.cc index 5a0f3127..8750b8e8 100644 --- a/src/2399.check-distances-between-same-letters.cc +++ b/src/2399.check-distances-between-same-letters.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include #include diff --git a/src/24.swap-nodes-in-pairs.cc b/src/24.swap-nodes-in-pairs.cc index 40bc8cd6..6cf627c7 100644 --- a/src/24.swap-nodes-in-pairs.cc +++ b/src/24.swap-nodes-in-pairs.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/240.search-a-2d-matrix-ii.cc b/src/240.search-a-2d-matrix-ii.cc index 2ae34098..8fc17972 100644 --- a/src/240.search-a-2d-matrix-ii.cc +++ b/src/240.search-a-2d-matrix-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2404.most-frequent-even-element.cc b/src/2404.most-frequent-even-element.cc index affbdfd9..49f87310 100644 --- a/src/2404.most-frequent-even-element.cc +++ b/src/2404.most-frequent-even-element.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2413.smallest-even-multiple.cc b/src/2413.smallest-even-multiple.cc index e4a690fc..deab30cf 100644 --- a/src/2413.smallest-even-multiple.cc +++ b/src/2413.smallest-even-multiple.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2413.smallest-even-multiple.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/21 01:00 -// Last Modified: 2023/04/21 01:00 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/2418.sort-the-people.cc b/src/2418.sort-the-people.cc index 8c851322..685f71ea 100644 --- a/src/2418.sort-the-people.cc +++ b/src/2418.sort-the-people.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2418.sort-the-people.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/25 00:31 -// Last Modified: 2023/04/25 00:31 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2432.the-employee-that-worked-on-the-longest-task.cc b/src/2432.the-employee-that-worked-on-the-longest-task.cc index 74a9395a..f468d86a 100644 --- a/src/2432.the-employee-that-worked-on-the-longest-task.cc +++ b/src/2432.the-employee-that-worked-on-the-longest-task.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2432.the-employee-that-worked-on-the-longest-task.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/05 00:51 -// Last Modified: 2023/05/05 00:51 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include diff --git a/src/2437.number-of-valid-clock-times.cc b/src/2437.number-of-valid-clock-times.cc index 84906f5f..eaaae4c9 100644 --- a/src/2437.number-of-valid-clock-times.cc +++ b/src/2437.number-of-valid-clock-times.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2437.number-of-valid-clock-times.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/09 00:35 -// Last Modified: 2023/05/09 00:35 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2441.largest-positive-integer-that-exists-with-its-negative.cc b/src/2441.largest-positive-integer-that-exists-with-its-negative.cc index 09223c1c..a06c4ce3 100644 --- a/src/2441.largest-positive-integer-that-exists-with-its-negative.cc +++ b/src/2441.largest-positive-integer-that-exists-with-its-negative.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2441.largest-positive-integer-that-exists-with-its-negative.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/13 00:25 -// Last Modified: 2023/05/13 00:25 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2446.determine-if-two-events-have-conflict.cc b/src/2446.determine-if-two-events-have-conflict.cc index 804ec452..b18989bc 100644 --- a/src/2446.determine-if-two-events-have-conflict.cc +++ b/src/2446.determine-if-two-events-have-conflict.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2446.determine-if-two-events-have-conflict.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/05/17 00:39 -// Last Modified: 2023/05/17 00:39 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2559.count-vowel-strings-in-ranges.cc b/src/2559.count-vowel-strings-in-ranges.cc index 6cecd2ae..08cbd2ea 100644 --- a/src/2559.count-vowel-strings-in-ranges.cc +++ b/src/2559.count-vowel-strings-in-ranges.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 2559.count-vowel-strings-in-ranges.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/06/02 01:06 -// Last Modified: 2023/06/02 01:06 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/257.binary-tree-paths.cc b/src/257.binary-tree-paths.cc index 495cd259..d96e0f56 100644 --- a/src/257.binary-tree-paths.cc +++ b/src/257.binary-tree-paths.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/263.ugly-number.cc b/src/263.ugly-number.cc index bcc22b3a..bcdc70fd 100644 --- a/src/263.ugly-number.cc +++ b/src/263.ugly-number.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/27.remove-element.cc b/src/27.remove-element.cc index 0cc01dc4..012ef873 100644 --- a/src/27.remove-element.cc +++ b/src/27.remove-element.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/2710.remove-trailing-zeros-from-a-string.cc b/src/2710.remove-trailing-zeros-from-a-string.cc index f75edbe3..4d6c7fd1 100644 --- a/src/2710.remove-trailing-zeros-from-a-string.cc +++ b/src/2710.remove-trailing-zeros-from-a-string.cc @@ -14,6 +14,22 @@ // Authors: liubang (it.liubang@gmail.com) +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/279.perfect-squares.cc b/src/279.perfect-squares.cc index 522fad52..33685e8b 100644 --- a/src/279.perfect-squares.cc +++ b/src/279.perfect-squares.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 279.perfect-squares.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/17 13:45 -// Last Modified: 2023/04/17 13:45 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/28.implement-strstr.cc b/src/28.implement-strstr.cc index 01d1345a..a30aafe1 100644 --- a/src/28.implement-strstr.cc +++ b/src/28.implement-strstr.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/3.longest-substring-without-repeating-characters.cc b/src/3.longest-substring-without-repeating-characters.cc index dd2a0d01..41b3626f 100644 --- a/src/3.longest-substring-without-repeating-characters.cc +++ b/src/3.longest-substring-without-repeating-characters.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/31.next-permutation.cc b/src/31.next-permutation.cc index 0f87fd7a..182e82e8 100644 --- a/src/31.next-permutation.cc +++ b/src/31.next-permutation.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/32.longest-valid-parentheses.cc b/src/32.longest-valid-parentheses.cc index 961cf499..d892aae9 100644 --- a/src/32.longest-valid-parentheses.cc +++ b/src/32.longest-valid-parentheses.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/322.coin-change.cc b/src/322.coin-change.cc index 5681ecc9..71b15d26 100644 --- a/src/322.coin-change.cc +++ b/src/322.coin-change.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 322.coin-change.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/17 21:01 -// Last Modified: 2023/04/17 21:01 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/331.verify-preorder-serialization-of-a-binary-tree.cc b/src/331.verify-preorder-serialization-of-a-binary-tree.cc index bff5c20e..91ef0379 100644 --- a/src/331.verify-preorder-serialization-of-a-binary-tree.cc +++ b/src/331.verify-preorder-serialization-of-a-binary-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/34.find-first-and-last-position-of-element-in-sorted-array.cc b/src/34.find-first-and-last-position-of-element-in-sorted-array.cc index 29b92f1d..b1813549 100644 --- a/src/34.find-first-and-last-position-of-element-in-sorted-array.cc +++ b/src/34.find-first-and-last-position-of-element-in-sorted-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/341.flatten-nested-list-iterator.cc b/src/341.flatten-nested-list-iterator.cc index c1c75104..22c6605e 100644 --- a/src/341.flatten-nested-list-iterator.cc +++ b/src/341.flatten-nested-list-iterator.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/342.power-of-four.cc b/src/342.power-of-four.cc index 5b2b83c6..9189c841 100644 --- a/src/342.power-of-four.cc +++ b/src/342.power-of-four.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/35.search-insert-position.cc b/src/35.search-insert-position.cc index 333e1216..789b23e9 100644 --- a/src/35.search-insert-position.cc +++ b/src/35.search-insert-position.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/38.count-and-say.cc b/src/38.count-and-say.cc index 395d45f8..89ec0c5f 100644 --- a/src/38.count-and-say.cc +++ b/src/38.count-and-say.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/4.median-of-two-sorted-arrays.cc b/src/4.median-of-two-sorted-arrays.cc index 73e5b299..f6a242aa 100644 --- a/src/4.median-of-two-sorted-arrays.cc +++ b/src/4.median-of-two-sorted-arrays.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/402.remove-k-digits.cc b/src/402.remove-k-digits.cc index 503aa513..7ca8f2ed 100644 --- a/src/402.remove-k-digits.cc +++ b/src/402.remove-k-digits.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/404.sum-of-left-leaves.cc b/src/404.sum-of-left-leaves.cc index 01fb7974..e259483d 100644 --- a/src/404.sum-of-left-leaves.cc +++ b/src/404.sum-of-left-leaves.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/41.first-missing-positive.cc b/src/41.first-missing-positive.cc index a6fdef02..0d9d0500 100644 --- a/src/41.first-missing-positive.cc +++ b/src/41.first-missing-positive.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/415.add-strings.cc b/src/415.add-strings.cc index 848443d6..61ca9608 100644 --- a/src/415.add-strings.cc +++ b/src/415.add-strings.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/416.partition-equal-subset-sum.cc b/src/416.partition-equal-subset-sum.cc index 15990c74..32eb568b 100644 --- a/src/416.partition-equal-subset-sum.cc +++ b/src/416.partition-equal-subset-sum.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 416.partition-equal-subset-sum.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/16 17:19 -// Last Modified: 2023/04/16 17:19 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/421.maximum-xor-of-two-numbers-in-an-array.cc b/src/421.maximum-xor-of-two-numbers-in-an-array.cc index c149fe9a..c9fb77e9 100644 --- a/src/421.maximum-xor-of-two-numbers-in-an-array.cc +++ b/src/421.maximum-xor-of-two-numbers-in-an-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/451.sort-characters-by-frequency.cc b/src/451.sort-characters-by-frequency.cc index 2bcbc374..e28bd363 100644 --- a/src/451.sort-characters-by-frequency.cc +++ b/src/451.sort-characters-by-frequency.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/453.minimum-moves-to-equal-array-elements.cc b/src/453.minimum-moves-to-equal-array-elements.cc index 0c77be0d..3bb3bb91 100644 --- a/src/453.minimum-moves-to-equal-array-elements.cc +++ b/src/453.minimum-moves-to-equal-array-elements.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/456.132-pattern.cc b/src/456.132-pattern.cc index 70221a73..8e46e43f 100644 --- a/src/456.132-pattern.cc +++ b/src/456.132-pattern.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/46.permutations.cc b/src/46.permutations.cc index 1f416d39..97fb616d 100644 --- a/src/46.permutations.cc +++ b/src/46.permutations.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/461.hamming-distance.cc b/src/461.hamming-distance.cc index 2bb573e9..a0af0d85 100644 --- a/src/461.hamming-distance.cc +++ b/src/461.hamming-distance.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { class Solution { diff --git a/src/463.island-perimeter.cc b/src/463.island-perimeter.cc index d6ff07d6..f8791c09 100644 --- a/src/463.island-perimeter.cc +++ b/src/463.island-perimeter.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/470.implement-rand10-using-rand7.cc b/src/470.implement-rand10-using-rand7.cc index 97cbad4a..6f5a3cbe 100644 --- a/src/470.implement-rand10-using-rand7.cc +++ b/src/470.implement-rand10-using-rand7.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/481.magical-string.cc b/src/481.magical-string.cc index b0dc2e4c..e4785db1 100644 --- a/src/481.magical-string.cc +++ b/src/481.magical-string.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/485.max-consecutive-ones.cc b/src/485.max-consecutive-ones.cc index f7ebbc5c..aa3a076d 100644 --- a/src/485.max-consecutive-ones.cc +++ b/src/485.max-consecutive-ones.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/494.target-sum.cc b/src/494.target-sum.cc index 895cfb4c..d82ff226 100644 --- a/src/494.target-sum.cc +++ b/src/494.target-sum.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 494.target-sum.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/16 21:40 -// Last Modified: 2023/04/16 21:40 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/5.longest-palindromic-substring.cc b/src/5.longest-palindromic-substring.cc index 19fc0123..435cd7b8 100644 --- a/src/5.longest-palindromic-substring.cc +++ b/src/5.longest-palindromic-substring.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/518.coin-change-ii.cc b/src/518.coin-change-ii.cc index e2bec02b..758fa550 100644 --- a/src/518.coin-change-ii.cc +++ b/src/518.coin-change-ii.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// 518.coin-change-ii.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/17 23:39 -// Last Modified: 2023/04/17 23:39 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/539.minimum-time-difference.cc b/src/539.minimum-time-difference.cc index 83b8f700..c87d70a6 100644 --- a/src/539.minimum-time-difference.cc +++ b/src/539.minimum-time-difference.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/54.spiral-matrix.cc b/src/54.spiral-matrix.cc index 977ba405..82a43945 100644 --- a/src/54.spiral-matrix.cc +++ b/src/54.spiral-matrix.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/543.diameter-of-binary-tree.cc b/src/543.diameter-of-binary-tree.cc index 3b09179c..c323913b 100644 --- a/src/543.diameter-of-binary-tree.cc +++ b/src/543.diameter-of-binary-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/55.jump-game.cc b/src/55.jump-game.cc index 8044f1c4..e5e1a588 100644 --- a/src/55.jump-game.cc +++ b/src/55.jump-game.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/56.merge-intervals.cc b/src/56.merge-intervals.cc index 788b85e9..f2570fe0 100644 --- a/src/56.merge-intervals.cc +++ b/src/56.merge-intervals.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/58.length-of-last-word.cc b/src/58.length-of-last-word.cc index 56d9a66e..37832a36 100644 --- a/src/58.length-of-last-word.cc +++ b/src/58.length-of-last-word.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/59.spiral-matrix-ii.cc b/src/59.spiral-matrix-ii.cc index 9d020386..784ebd1a 100644 --- a/src/59.spiral-matrix-ii.cc +++ b/src/59.spiral-matrix-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/6.zigzag-conversion.cc b/src/6.zigzag-conversion.cc index 4a5de58a..e36920aa 100644 --- a/src/6.zigzag-conversion.cc +++ b/src/6.zigzag-conversion.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/61.rotate-list.cc b/src/61.rotate-list.cc index 29bc421d..0e1d0673 100644 --- a/src/61.rotate-list.cc +++ b/src/61.rotate-list.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/62.unique-paths.cc b/src/62.unique-paths.cc index 0ae972bc..0a639e16 100644 --- a/src/62.unique-paths.cc +++ b/src/62.unique-paths.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/64.minimum-path-sum.cc b/src/64.minimum-path-sum.cc index 9d9df17c..5c74e2af 100644 --- a/src/64.minimum-path-sum.cc +++ b/src/64.minimum-path-sum.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/66.plus-one.cc b/src/66.plus-one.cc index ea2d2dbf..ae840dad 100644 --- a/src/66.plus-one.cc +++ b/src/66.plus-one.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/67.add-binary.cc b/src/67.add-binary.cc index f0a5418c..f33a3ac9 100644 --- a/src/67.add-binary.cc +++ b/src/67.add-binary.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/671.second-minimum-node-in-a-binary-tree.cc b/src/671.second-minimum-node-in-a-binary-tree.cc index 0ad81545..6766db90 100644 --- a/src/671.second-minimum-node-in-a-binary-tree.cc +++ b/src/671.second-minimum-node-in-a-binary-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/68.valid-palindrome-ii.cc b/src/68.valid-palindrome-ii.cc index 91fa25ee..60ed99e3 100644 --- a/src/68.valid-palindrome-ii.cc +++ b/src/68.valid-palindrome-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/692.top-k-frequent-words.cc b/src/692.top-k-frequent-words.cc index 051b7b61..b8b5f7be 100644 --- a/src/692.top-k-frequent-words.cc +++ b/src/692.top-k-frequent-words.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/693.binary-number-with-alternating-bits.cc b/src/693.binary-number-with-alternating-bits.cc index 97f5d8b8..32fa940a 100644 --- a/src/693.binary-number-with-alternating-bits.cc +++ b/src/693.binary-number-with-alternating-bits.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/7.reverse-integer.cc b/src/7.reverse-integer.cc index 8f76fef5..0b80557c 100644 --- a/src/7.reverse-integer.cc +++ b/src/7.reverse-integer.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/70.climbing-stairs.cc b/src/70.climbing-stairs.cc index b1027588..5dd73a79 100644 --- a/src/70.climbing-stairs.cc +++ b/src/70.climbing-stairs.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/704.binary-search.cc b/src/704.binary-search.cc index 4f65d87c..31c3e976 100644 --- a/src/704.binary-search.cc +++ b/src/704.binary-search.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/718.maximum-length-of-repeated-subarray.cc b/src/718.maximum-length-of-repeated-subarray.cc index 4faf4057..b7e970c5 100644 --- a/src/718.maximum-length-of-repeated-subarray.cc +++ b/src/718.maximum-length-of-repeated-subarray.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/74.search-a-2d-matrix.cc b/src/74.search-a-2d-matrix.cc index bcb4f5ab..aeebb68f 100644 --- a/src/74.search-a-2d-matrix.cc +++ b/src/74.search-a-2d-matrix.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/766.toeplitz-matrix.cc b/src/766.toeplitz-matrix.cc index c7e0d61c..6a60781b 100644 --- a/src/766.toeplitz-matrix.cc +++ b/src/766.toeplitz-matrix.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/78.subsets.cc b/src/78.subsets.cc index bc4f5a2e..68347c97 100644 --- a/src/78.subsets.cc +++ b/src/78.subsets.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/783.minimum-distance-between-bst-nodes.cc b/src/783.minimum-distance-between-bst-nodes.cc index 46bd008d..2705ff52 100644 --- a/src/783.minimum-distance-between-bst-nodes.cc +++ b/src/783.minimum-distance-between-bst-nodes.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/79.word-search.cc b/src/79.word-search.cc index 906b3064..53ec5608 100644 --- a/src/79.word-search.cc +++ b/src/79.word-search.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/8.string-to-integer-atoi.cc b/src/8.string-to-integer-atoi.cc index 4caf5d3a..0834172a 100644 --- a/src/8.string-to-integer-atoi.cc +++ b/src/8.string-to-integer-atoi.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/80.remove-duplicates-from-sorted-array-ii.cc b/src/80.remove-duplicates-from-sorted-array-ii.cc index c36baa21..c9cec1b8 100644 --- a/src/80.remove-duplicates-from-sorted-array-ii.cc +++ b/src/80.remove-duplicates-from-sorted-array-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/82.remove-duplicates-from-sorted-list-ii.cc b/src/82.remove-duplicates-from-sorted-list-ii.cc index 2c652c16..598e23e9 100644 --- a/src/82.remove-duplicates-from-sorted-list-ii.cc +++ b/src/82.remove-duplicates-from-sorted-list-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/83.remove-duplicates-from-sorted-list.cc b/src/83.remove-duplicates-from-sorted-list.cc index 8cc710d0..4d34a246 100644 --- a/src/83.remove-duplicates-from-sorted-list.cc +++ b/src/83.remove-duplicates-from-sorted-list.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "list.h" diff --git a/src/832.flipping-an-image.cc b/src/832.flipping-an-image.cc index 677545da..50b023c7 100644 --- a/src/832.flipping-an-image.cc +++ b/src/832.flipping-an-image.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/84.largest-rectangle-in-histogram.cc b/src/84.largest-rectangle-in-histogram.cc index 9d37ae03..50821a20 100644 --- a/src/84.largest-rectangle-in-histogram.cc +++ b/src/84.largest-rectangle-in-histogram.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/867.transpose-matrix.cc b/src/867.transpose-matrix.cc index 6a6a8334..d8eeecc5 100644 --- a/src/867.transpose-matrix.cc +++ b/src/867.transpose-matrix.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/872.leaf-similar-trees.cc b/src/872.leaf-similar-trees.cc index 0a77c2b3..1eabdc1f 100644 --- a/src/872.leaf-similar-trees.cc +++ b/src/872.leaf-similar-trees.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/88.merge-sorted-array.cc b/src/88.merge-sorted-array.cc index 7486e983..0cc3cd88 100644 --- a/src/88.merge-sorted-array.cc +++ b/src/88.merge-sorted-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/90.subsets-ii.cc b/src/90.subsets-ii.cc index 5fec96db..fb81c537 100644 --- a/src/90.subsets-ii.cc +++ b/src/90.subsets-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/912.sort-an-array.cc b/src/912.sort-an-array.cc index 51169241..20173dfa 100644 --- a/src/912.sort-an-array.cc +++ b/src/912.sort-an-array.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/92.reverse-linked-list-ii.cc b/src/92.reverse-linked-list-ii.cc index 238bedd5..a252929c 100644 --- a/src/92.reverse-linked-list-ii.cc +++ b/src/92.reverse-linked-list-ii.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/94.binary-tree-inorder-traversal.cc b/src/94.binary-tree-inorder-traversal.cc index 77743d78..7d908702 100644 --- a/src/94.binary-tree-inorder-traversal.cc +++ b/src/94.binary-tree-inorder-traversal.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/958.check-completeness-of-a-binary-tree.cc b/src/958.check-completeness-of-a-binary-tree.cc index 1715a1c8..4d510800 100644 --- a/src/958.check-completeness-of-a-binary-tree.cc +++ b/src/958.check-completeness-of-a-binary-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/98.validate-binary-search-tree.cc b/src/98.validate-binary-search-tree.cc index d2e8ce01..884def0c 100644 --- a/src/98.validate-binary-search-tree.cc +++ b/src/98.validate-binary-search-tree.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/990.satisfiability-of-equality-equations.cc b/src/990.satisfiability-of-equality-equations.cc index b9b2a1c5..8da8664e 100644 --- a/src/990.satisfiability-of-equality-equations.cc +++ b/src/990.satisfiability-of-equality-equations.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include #include diff --git a/src/lcci-0105.one-away-lcci.cc b/src/lcci-0105.one-away-lcci.cc index 8645e69d..b01e9a35 100644 --- a/src/lcci-0105.one-away-lcci.cc +++ b/src/lcci-0105.one-away-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0106.compress-string-lcci.cc b/src/lcci-0106.compress-string-lcci.cc index 8dd92144..2c1b3b8f 100644 --- a/src/lcci-0106.compress-string-lcci.cc +++ b/src/lcci-0106.compress-string-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0107.rotate-matrix-lcci.cc b/src/lcci-0107.rotate-matrix-lcci.cc index 7feabea8..c51f994d 100644 --- a/src/lcci-0107.rotate-matrix-lcci.cc +++ b/src/lcci-0107.rotate-matrix-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0108.zero-matrix-lcci.cc b/src/lcci-0108.zero-matrix-lcci.cc index 1bf93203..50b799fb 100644 --- a/src/lcci-0108.zero-matrix-lcci.cc +++ b/src/lcci-0108.zero-matrix-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0109.string-rotation-lcci.cc b/src/lcci-0109.string-rotation-lcci.cc index 3f5b4f03..c371a24c 100644 --- a/src/lcci-0109.string-rotation-lcci.cc +++ b/src/lcci-0109.string-rotation-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0302.min-stack-lcci.cc b/src/lcci-0302.min-stack-lcci.cc index 53b78e59..1aa64532 100644 --- a/src/lcci-0302.min-stack-lcci.cc +++ b/src/lcci-0302.min-stack-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0304.implement-queue-using-stacks-lcci.cc b/src/lcci-0304.implement-queue-using-stacks-lcci.cc index 404d5392..a3193707 100644 --- a/src/lcci-0304.implement-queue-using-stacks-lcci.cc +++ b/src/lcci-0304.implement-queue-using-stacks-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0305.sort-of-stacks-lcci.cc b/src/lcci-0305.sort-of-stacks-lcci.cc index 81abe4c1..a6f98dac 100644 --- a/src/lcci-0305.sort-of-stacks-lcci.cc +++ b/src/lcci-0305.sort-of-stacks-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-0403.list-of-depth-lcci.cc b/src/lcci-0403.list-of-depth-lcci.cc index c4badd60..a9901083 100644 --- a/src/lcci-0403.list-of-depth-lcci.cc +++ b/src/lcci-0403.list-of-depth-lcci.cc @@ -1,11 +1,19 @@ -//===================================================================== +// Copyright (c) 2024 The Authors. All rights reserved. // -// lcci-0403.list-of-depth-lcci.cc - +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at // -// Created by liubang on 2023/04/15 17:48 -// Last Modified: 2023/04/15 17:48 +// https://www.apache.org/licenses/LICENSE-2.0 // -//===================================================================== +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include "list.h" #include "tree.h" #include diff --git a/src/lcci-1626.calculator-lcci.cc b/src/lcci-1626.calculator-lcci.cc index c699299d..645d506a 100644 --- a/src/lcci-1626.calculator-lcci.cc +++ b/src/lcci-1626.calculator-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcci-1721.volume-of-histogram-lcci.cc b/src/lcci-1721.volume-of-histogram-lcci.cc index c4380c06..7ecf57a1 100644 --- a/src/lcci-1721.volume-of-histogram-lcci.cc +++ b/src/lcci-1721.volume-of-histogram-lcci.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-09.yong-liang-ge-zhan-shi-xian-dui-lie-lcof.cc b/src/lcof-09.yong-liang-ge-zhan-shi-xian-dui-lie-lcof.cc index 8eeb928c..4f37b6e3 100644 --- a/src/lcof-09.yong-liang-ge-zhan-shi-xian-dui-lie-lcof.cc +++ b/src/lcof-09.yong-liang-ge-zhan-shi-xian-dui-lie-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-13.ji-qi-ren-de-yun-dong-fan-wei-lcof.cc b/src/lcof-13.ji-qi-ren-de-yun-dong-fan-wei-lcof.cc index 27e7efac..6cfa0714 100644 --- a/src/lcof-13.ji-qi-ren-de-yun-dong-fan-wei-lcof.cc +++ b/src/lcof-13.ji-qi-ren-de-yun-dong-fan-wei-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-21.diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof.cc b/src/lcof-21.diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof.cc index 72f0f455..5c7bf76f 100644 --- a/src/lcof-21.diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof.cc +++ b/src/lcof-21.diao-zheng-shu-zu-shun-xu-shi-qi-shu-wei-yu-ou-shu-qian-mian-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-26.shu-de-zi-jie-gou-lcof.cc b/src/lcof-26.shu-de-zi-jie-gou-lcof.cc index 0f8bff17..aa0cf175 100644 --- a/src/lcof-26.shu-de-zi-jie-gou-lcof.cc +++ b/src/lcof-26.shu-de-zi-jie-gou-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof.cc b/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof.cc index 321986ef..ad81b19c 100644 --- a/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof.cc +++ b/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-iii-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-lcof.cc b/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-lcof.cc index 9d0988d8..dd7e3a03 100644 --- a/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-lcof.cc +++ b/src/lcof-32.cong-shang-dao-xia-da-yin-er-cha-shu-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include "tree.h" diff --git a/src/lcof-54.er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof.cc b/src/lcof-54.er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof.cc index 537682d6..8e6afc56 100644 --- a/src/lcof-54.er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof.cc +++ b/src/lcof-54.er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-56.shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof.cc b/src/lcof-56.shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof.cc index 6bf941fe..60fe4c25 100644 --- a/src/lcof-56.shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof.cc +++ b/src/lcof-56.shu-zu-zhong-shu-zi-chu-xian-de-ci-shu-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-59.hua-dong-chuang-kou-de-zui-da-zhi-lcof.cc b/src/lcof-59.hua-dong-chuang-kou-de-zui-da-zhi-lcof.cc index 398f14b1..d12af7e8 100644 --- a/src/lcof-59.hua-dong-chuang-kou-de-zui-da-zhi-lcof.cc +++ b/src/lcof-59.hua-dong-chuang-kou-de-zui-da-zhi-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-60.nge-tou-zi-de-dian-shu-lcof.cc b/src/lcof-60.nge-tou-zi-de-dian-shu-lcof.cc index 8c1c41c5..8d67d154 100644 --- a/src/lcof-60.nge-tou-zi-de-dian-shu-lcof.cc +++ b/src/lcof-60.nge-tou-zi-de-dian-shu-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-61.bu-ke-pai-zhong-de-shun-zi-lcof.cc b/src/lcof-61.bu-ke-pai-zhong-de-shun-zi-lcof.cc index b6d8c0d8..85a0b150 100644 --- a/src/lcof-61.bu-ke-pai-zhong-de-shun-zi-lcof.cc +++ b/src/lcof-61.bu-ke-pai-zhong-de-shun-zi-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcof-62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cc b/src/lcof-62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cc index f22ba13e..40149dcf 100644 --- a/src/lcof-62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cc +++ b/src/lcof-62.yuan-quan-zhong-zui-hou-sheng-xia-de-shu-zi-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/lcof-65.bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof.cc b/src/lcof-65.bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof.cc index cb053bcd..6dbdb00d 100644 --- a/src/lcof-65.bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof.cc +++ b/src/lcof-65.bu-yong-jia-jian-cheng-chu-zuo-jia-fa-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include namespace { diff --git a/src/lcof-66.gou-jian-cheng-ji-shu-zu-lcof.cc b/src/lcof-66.gou-jian-cheng-ji-shu-zu-lcof.cc index 2c0cb6fe..6ebc429f 100644 --- a/src/lcof-66.gou-jian-cheng-ji-shu-zu-lcof.cc +++ b/src/lcof-66.gou-jian-cheng-ji-shu-zu-lcof.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include diff --git a/src/lcp-34-er-cha-shu-ran-se-UGC.cc b/src/lcp-34-er-cha-shu-ran-se-UGC.cc index 969ebd17..25c713cd 100644 --- a/src/lcp-34-er-cha-shu-ran-se-UGC.cc +++ b/src/lcp-34-er-cha-shu-ran-se-UGC.cc @@ -1,3 +1,19 @@ +// Copyright (c) 2024 The Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Authors: liubang (it.liubang@gmail.com) + #include #include