ti_gr

module
v0.0.0-...-bdaad32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: Apache-2.0

README

https://leetcode.cn/
## 数组
t_01_704_binary_search                                              704. 二分查找
t_02_35_search_insert_position                                      35. 搜索插入位置
t_003_34_find_first_and_last_position_of_element_in_sorted_array    34. 在排序数组中查找元素的第一个和最后一个位置
t_004_69_sqrtx                                                      69. x 的平方根
t_005_367_valid_perfect_square                                      367. 有效的完全平方数
t_006_27_remove_element                                             27. 移除元素
t_007_26_remove_duplicates_from_sorted_array                        26. 删除有序数组中的重复项
t_008_844_backspace_string_compare                                  844. 比较含退格的字符串
t_009_283_move_zeroes                                               283. 移动零
t_010_977_squares_of_a_sorted_array                                 977. 有序数组的平方
t_011_209_minimum_size_subarray_sum                                 209. 长度最小的子数组
t_012_904_fruit_into_baskets                                        904. 水果成篮
t_013_76_minimum_window_substring                                   76. 最小覆盖子串
t_014_59_spiral_matrix_ii                                           59. 螺旋矩阵 II
t_015_54_spiral_matrix                                              54. 螺旋矩阵

## 链表
t_016_203_remove_linked_list_elements                               203. 移除链表元素
t_017_707_design_linked_list                                        707. 设计链表
t_018_206_reverse_linked_list                                       206. 反转链表
t_019_24_swap_nodes_in_pairs                                        24. 两两交换链表中的节点
t_020_19_remove_nth_node_from_end_of_list                           19. 删除链表的倒数第 N 个结点
t_021_0207_intersection_of_two_linked_lists_lcci                    面试题 02.07. 链表相交
t_022_142_linked_list_cycle_ii                                      142. 环形链表 II

## 哈希表
t_023_242_valid_anagram                                             242. 有效的字母异位词
t_024_383_ransom_note                                               383. 赎金信
t_025_49_group_anagrams                                             49. 字母异位词分组
t_026_438_find_all_anagrams_in_a_string                             438. 找到字符串中所有字母异位词
t_027_1002_find_common_characters                                   1002. 查找共用字符
t_028_349_intersection_of_two_arrays                                349. 两个数组的交集
t_029_202_happy_number                                              202. 快乐数
t_030_1_two_sum                                                     1. 两数之和
t_031_454_4sum_ii                                                   454. 四数相加 II
t_032_15_3sum                                                       15. 三数之和
t_033_18_4sum                                                       18. 四数之和

## 字符串
t_034_344_reverse_string                                            344. 反转字符串
t_035_541_reverse_string_ii                                         541. 反转字符串 II
t_036_offer05_ti_huan_kong_ge_lcof                                  剑指 Offer 05. 替换空格
t_037_151_reverse_words_in_a_string                                 151. 反转字符串中的单词
t_038_offer58ii_zuo_xuan_zhuan_zi_fu_chuan_lcof                     剑指 Offer 58 - II. 左旋转字符串
t_039_28_find_the_index_of_the_first_occurrence_in_a_string         28. 找出字符串中第一个匹配项的下标
t_040_459_repeated_substring_pattern                                459. 重复的子字符串

## 栈和队列
t_041_232_implement_queue_using_stacks                              232. 用栈实现队列
t_042_225_implement_stack_using_queues                              225. 用队列实现栈
t_043_20_valid_parentheses                                          20. 有效的括号
t_044_1047_remove_all_adjacent_duplicates_in_string                 1047. 删除字符串中的所有相邻重复项
t_045_150_evaluate_reverse_polish_notation                          150. 逆波兰表达式求值
t_046_239_sliding_window_maximum                                    239. 滑动窗口最大值
t_047_347_top_k_frequent_elements                                   347. 前 K 个高频元素

## 二叉树
t_048_144_binary_tree_preorder_traversal                            144. 二叉树的前序遍历
t_049_94_binary_tree_inorder_traversal                              94. 二叉树的中序遍历
t_050_145_binary_tree_postorder_traversal                           145. 二叉树的后序遍历
t_051_102_binary_tree_level_order_traversal                         102. 二叉树的层序遍历
t_052_107_binary_tree_level_order_traversal_ii                      107. 二叉树的层序遍历 II
t_053_199_binary_tree_right_side_view                               199. 二叉树的右视图
t_054_637_average_of_levels_in_binary_tree                          637. 二叉树的层平均值
t_055_429_n_ary_tree_level_order_traversal                          429. N 叉树的层序遍历
t_056_515_find_largest_value_in_each_tree_row                       515. 在每个树行中找最大值
t_057_116_populating_next_right_pointers_in_each_node               116. 填充每个节点的下一个右侧节点指针
t_058_117_populating_next_right_pointers_in_each_node_ii            117. 填充每个节点的下一个右侧节点指针 II
t_059_104_maximum_depth_of_binary_tree                              104. 二叉树的最大深度
t_060_111_minimum_depth_of_binary_tree                              111. 二叉树的最小深度
t_061_226_invert_binary_tree                                        226. 翻转二叉树
t_062_589_n_ary_tree_preorder_traversal                             589. N 叉树的前序遍历
t_063_590_n_ary_tree_postorder_traversal                            590. N 叉树的后序遍历
t_064_101_symmetric_tree                                            101. 对称二叉树
t_065_100_same_tree                                                 100. 相同的树
t_066_572_subtree_of_another_tree                                   572. 另一棵树的子树
t_067_559_maximum_depth_of_n_ary_tree                               559. N 叉树的最大深度
t_068_222_count_complete_tree_nodes                                 222. 完全二叉树的节点个数
t_069_110_balanced_binary_tree                                      110. 平衡二叉树
t_070_257_binary_tree_paths                                         257. 二叉树的所有路径
t_071_404_sum_of_left_leaves                                        404. 左叶子之和
t_072_513_find_bottom_left_tree_value                               513. 找树左下角的值
t_073_112_path_sum                                                  112. 路径总和
t_074_113_path_sum_ii                                               113. 路径总和 II
t_075_106_construct_binary_tree_from_inorder_and_postorder_traversal106. 从中序与后序遍历序列构造二叉树
t_076_105_construct_binary_tree_from_preorder_and_inorder_traversal 105. 从前序与中序遍历序列构造二叉树
t_077_654_maximum_binary_tree                                       654. 最大二叉树
t_078_617_merge_two_binary_trees                                    617. 合并二叉树
t_079_700_search_in_a_binary_search_tree                            700. 二叉搜索树中的搜索
t_080_98_validate_binary_search_tree                                98. 验证二叉搜索树
t_081_530_minimum_absolute_difference_in_bst                        530. 二叉搜索树的最小绝对差
t_082_501_find_mode_in_binary_search_tree                           501. 二叉搜索树中的众数
t_083_236_lowest_common_ancestor_of_a_binary_tree                   236. 二叉树的最近公共祖先
t_084_235_lowest_common_ancestor_of_a_binary_search_tree            235. 二叉搜索树的最近公共祖先
t_085_701_insert_into_a_binary_search_tree                          701. 二叉搜索树中的插入操作
t_086_450_delete_node_in_a_bst                                      450. 删除二叉搜索树中的节点
t_087_669_trim_a_binary_search_tree                                 669. 修剪二叉搜索树
t_088_108_convert_sorted_array_to_binary_search_tree                108. 将有序数组转换为二叉搜索树
t_089_538_convert_bst_to_greater_tree                               538. 把二叉搜索树转换为累加树
 
## 回溯
t_090_77_combinations                                               77. 组合
t_091_216_combination_sum_iii                                       216. 组合总和 III
t_092_17_letter_combinations_of_a_phone_number                      17. 电话号码的字母组合
t_093_39_combination_sum                                            39. 组合总和
t_094_40_combination_sum_ii                                         40. 组合总和 II
t_095_131_palindrome_partitioning                                   131. 分割回文串
t_096_93_restore_ip_addresses                                       93. 复原 IP 地址
t_097_78_subsets                                                    78. 子集
t_098_90_subsets_ii                                                 90. 子集 II
t_099_491_increasing_subsequences                                   491. 递增子序列
t_100_46_permutations                                               46. 全排列
t_101_47_permutations_ii                                            47. 全排列 II
t_102_332_reconstruct_itinerary                                     332. 重新安排行程
t_103_51_n_queens                                                   51. N 皇后
t_104_37_sudoku_solver                                              37. 解数独

## 贪心
t_105_455_assign_cookies                                            455. 分发饼干

Directories

Path Synopsis
src
t_999_lru
lru 算法
lru 算法

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL