【文件属性】:
文件名称:leetcode走楼梯-algorithms_practice:算法_实践
文件大小:1.19MB
文件格式:ZIP
更新时间:2021-07-01 06:04:14
系统开源
leetcode
走踏板Leetcode
算法实践
#
困难
标题
示例(输入/输出)
解决方案
阴谋
1
简单的
输入:nums
=
[2,7,11,15],目标
=
9;
输出:[0,1]
因为
nums[0]
+
nums[1]
==
9,我们返回
[0,
1]。
2
中等的
输入:l1
=
[2,4,3],l2
=
[5,6,4];
输出:[7,0,8];
解释:342
+
465
=
807。
3
中等的
输入:s
=
"abcabcbb";
输出:3;
解释:答案是“abc”,长度为3。
5
中等的
输入:s
=
"babad";
输出:“bab”;
注意:“aba”也是一个有效的答案。
6
中等的
输入:s
=
"PAYPALISHIRING",
numRows
=
3;
输出:“PAHNAPLSIIGYIR”
7
简单的
输入:x
=
123;
输出:321
9
简单的
输入:x
=
121;
输出:真
9
中等的
输入:高度
=
[1,8,6,2,5,4,8,3,7];
输出:49;
说明:以上竖线用数组[1,8,6,2,5,4,8,3,7]表示。
在这种情况下,容器
【文件预览】:
algorithms_practice-master
----count_and_say.py(504B)
----longest_common_prefix.py(750B)
----maximum_subarray.py(516B)
----spiral_matrix_ii.py(991B)
----3sum_closest.py(895B)
----zigzag_conversion.py(867B)
----README.md(14KB)
----unique_paths.py(639B)
----merge_k_sorted_lists.py(1KB)
----photos()
--------valid_sudoku.png(181KB)
--------combination_sum.png(48KB)
--------permutations.png(153KB)
--------dp_climbing_stairs.png(18KB)
--------mergesort.png(55KB)
--------gen_paren.png(5KB)
--------container_most_water.png(153KB)
--------unique_path_ii.jpg(85KB)
--------quicksort_partition.png(58KB)
--------rotate_image.png(195KB)
--------traversal.png(55KB)
--------zigzag.png(65KB)
--------queens.png(222KB)
----add_two_numbers.py(2KB)
----twosum_double_pointer.py(264B)
----reverse_integer.py(809B)
----minimum_path_sum.py(837B)
----two_sum_hash.py(965B)
----3sum.py(1016B)
----fastPower.py(481B)
----plus_one.py(606B)
----implement_strstr.py(541B)
----valid_sudoku.py(2KB)
----longest_palindromic_substring.py(745B)
----palindrome_number.py(629B)
----search_in_rotated_sorted_array.py(973B)
----find_first_and_last_position_of_element_in_sorted_array.py(1KB)
----generate_parentheses.py(617B)
----combination_sum.py(884B)
----gcd.py(234B)
----longest_substring_without_repeating_characters.py(862B)
----roman_to_integer.py(600B)
----container_with_most_water.py(913B)
----rotate_list.py(1KB)
----integer_to_roman.py(1KB)
----remove_nth_node_from_end_of_list.py(1KB)
----mergesort.py(1KB)
----powx_n.py(654B)
----length_of_last_word.py(517B)
----partitionArray.py(392B)
----valid_parentheses.py(520B)
----rotate_image.py(621B)
----isPalindrome.py(333B)
----sqrtx.py(564B)
----merge_two_sorted_lists.py(1KB)
----unique_paths_ii.py(948B)
----remove_duplicates_from_sorted_array.py(523B)
----climbing_stairs.py(447B)
----twosum_hash.py(342B)
----multiply_strings.py(906B)
----quickselect.py(2KB)
----jump_game.py(492B)
----group_anagrams.py(533B)
----rm_duplicates_from_sorted_arr.py(1KB)
----merge_intervals.py(599B)
----swap_nodes_in_pairs.py(1KB)
----spiral_matrix.py(1KB)
----sortColors.py(301B)
----combination_sum_ii.py(932B)
----permutations_ii.py(846B)
----remove_element.py(872B)
----covid19 updated.csv(11KB)
----n_queens.py(890B)
----search_insert_position.py(693B)
----add_binary.py(333B)
----permutations.py(583B)
----reverse_2poiters.py(266B)