文件名称:leetcode2sumc-leetcode:leetcode.com的解决方案
文件大小:33KB
文件格式:ZIP
更新时间:2024-07-20 11:10:19
系统开源
leetcode 2 和 c 力码 leetcode.com 问题的解决方案 C 中的解决方案 运行测试 使用问题编号执行 test.sh 以运行测试。 例如运行 leetcode_001_two_sum_test.c 有 5 个断言 sh test.sh 001 ..... 添加 -a 以运行所有测试(助手除外)。 sh test.sh all leetcode_001_two_sum_test.c ..... leetcode_002_add_two_numbers_test.c .... 添加 -b 以运行基准测试(显示 2 秒内运行了多少次)。 例如,使用基准运行 leetcode_001_two_sum_test.c 有 5 个断言 sh test.sh 001 -b ..... Benchmark: 225 runs in 2 seconds 例如测试 helper.c sh test.sh helper
【文件预览】:
leetcode-master
----.gitignore(6B)
----c()
--------leetcode_014_longest_common_prefix.c(388B)
--------leetcode_013_roman_to_integer.c(494B)
--------leetcode_029_divide_two_integers.c(626B)
--------leetcode_024_swap_pairs_test.c(598B)
--------leetcode_016_3sum_closest.c(2KB)
--------leetcode_026_remove_duplicates_test.c(865B)
--------leetcode_019_remove_nth_from_end_test.c(644B)
--------leetcode_003_longest_substring_test.c(397B)
--------test.sh(744B)
--------leetcode_014_longest_common_prefix_test.c(716B)
--------leetcode_026_remove_duplicates.c(311B)
--------leetcode_023_merge_k_lists_test.c(811B)
--------leetcode_015_3sum_test.c(967B)
--------leetcode_011_container_with_most_water.c(327B)
--------leetcode_022_generate_parenthesis_test.c(767B)
--------leetcode_010_regular_expression_matching.c(493B)
--------leetcode_017_letter_combination.c(1KB)
--------leetcode_022_generate_parenthesis.c(1KB)
--------leetcode_012_integer_to_roman.c(556B)
--------leetcode_023_merge_k_lists.c(2KB)
--------leetcode_005_longest_palindromic_substring.c(562B)
--------leetcode_003_longest_substring.c(381B)
--------leetcode_020_valid_parentheses.c(446B)
--------leetcode_028_str_str_test.c(653B)
--------leetcode_004_median_sorted_arrays_test.c(2KB)
--------leetcode_005_longest_palindromic_substring_test.c(555B)
--------leetcode_027_remove_element.c(259B)
--------leetcode_017_letter_combination_test.c(824B)
--------leetcode_008_string_to_integer_test.c(564B)
--------helper.h(2KB)
--------leetcode_018_4sum_test.c(895B)
--------leetcode_019_remove_nth_from_end.c(669B)
--------leetcode_002_add_two_numbers_test.c(2KB)
--------leetcode_027_remove_element_test.c(872B)
--------leetcode_007_reverse.c(258B)
--------leetcode_012_integer_to_roman_test.c(679B)
--------README.md(555B)
--------leetcode_002_add_two_numbers.c(808B)
--------leetcode_006_zigzag_conversion.c(867B)
--------leetcode_007_reverse_test.c(272B)
--------leetcode_028_str_str.c(863B)
--------leetcode_021_merge_two_lists_test.c(859B)
--------leetcode_024_swap_pairs.c(543B)
--------helper_test.c(2KB)
--------leetcode_008_string_to_integer.c(595B)
--------leetcode_029_divide_two_integers_test.c(765B)
--------leetcode_020_valid_parentheses_test.c(294B)
--------leetcode_018_4sum.c(2KB)
--------leetcode_016_3sum_closest_test.c(616B)
--------leetcode_006_zigzag_conversion_test.c(240B)
--------leetcode_009_palindrome_number.c(259B)
--------leetcode_009_palindrome_number_test.c(309B)
--------leetcode_011_container_with_most_water_test.c(425B)
--------leetcode_025_reverse_k_group_test.c(679B)
--------leetcode_013_roman_to_integer_test.c(413B)
--------leetcode_001_two_sum.c(1KB)
--------leetcode_015_3sum.c(2KB)
--------leetcode_025_reverse_k_group.c(952B)
--------leetcode_004_median_sorted_arrays.c(979B)
--------leetcode_021_merge_two_lists.c(683B)
--------helper.c(8KB)
--------leetcode_001_two_sum_test.c(679B)
--------leetcode_010_regular_expression_matching_test.c(754B)
----README.md(602B)