problemscpp
A collection of my answers to algorithm problems in c++.
命名空间 | 函数
leetcode_test.cpp 文件参考
#include "leetcode.h"
#include "gtest/gtest.h"
#include <algorithm>
#include <vector>

浏览源代码.

命名空间

namespace  leetcode
 
namespace  leetcode::add_digits
 LeetCode 258. Add Digits
 
namespace  leetcode::additive_number
 LeetCode 306. 累加数
 
namespace  leetcode::alien_dictionary
 
  1. 火星词典

 
namespace  leetcode::all_ancestors_of_a_node_in_a_directed_acyclic_graph
 LeetCode 5300. 有向无环图中一个节点的所有祖先
 
namespace  leetcode::all_oone_data_structure
 LeetCode 432. All O`one Data Structure
 
namespace  leetcode::append_k_integers_with_minimal_sum
 LeetCode 6017. 向数组中追加 K 个整数
 
namespace  leetcode::arithmetic_slices
 
  1. Arithmetic Slices

 
namespace  leetcode::array_of_doubled_pairs
 
  1. Array of Doubled Pairs

 
namespace  leetcode::base_7
 LeetCode 504. Base 7
 
namespace  leetcode::baseball_game
 
  1. Baseball Game

 
namespace  leetcode::best_time_to_buy_and_sell_stock_iii
 
  1. 买卖股票的最佳时机 III

 
namespace  leetcode::best_time_to_buy_and_sell_stock_with_cooldown
 
  1. 最佳买卖股票时机含冷冻期

 
namespace  leetcode::best_time_to_buy_and_sell_stock_with_transaction_fee
 
  1. 买卖股票的最佳时机含手续费

 
namespace  leetcode::binary_number_with_alternating_bits
 
  1. Binary Number with Alternating Bits

 
namespace  leetcode::calculate_money_in_leetcode_bank
 LeetCode 1716. 计算力扣银行的钱
 
namespace  leetcode::cells_in_a_range_on_an_excel_sheet
 LeetCode 6016. Excel 表中某个范围内的单元格
 
namespace  leetcode::check_if_all_as_appears_before_all_bs
 
namespace  leetcode::coin_change
 
  1. Coin Change

 
namespace  leetcode::complex_number_multiplication
 LeetCode 537. Complex Number Multiplication
 
namespace  leetcode::concatenated_words
 
namespace  leetcode::construct_string_with_repeat_limit
 LeetCode 6014. 构造限制重复的字符串
 
namespace  leetcode::contains_duplicate_ii
 LeetCode 219. 存在重复元素 II
 
namespace  leetcode::convert_1d_array_into_2d_array
 
namespace  leetcode::convert_bst_to_greater_tree
 
namespace  leetcode::coun_vowels_permutation
 LeetCode 1220. 统计元音字母序列的数目
 
namespace  leetcode::count_array_pairs_divisible_by_k
 LeetCode 6015. 统计可以被 K 整除的下标对数目
 
namespace  leetcode::count_artifacts_that_can_be_extracted
 LeetCode 5203. 统计可以提取的工件
 
namespace  leetcode::count_collisions_on_a_road
 LeetCode 6028. Count Collisions on a Road
 
namespace  leetcode::count_elements_with_strictly_smaller_and_greater_elements
 LeetCode 5989. 元素计数
 
namespace  leetcode::count_equal_and_divisible_pairs_in_an_array
 LeetCode 5996. 统计数组中相等且可以被整除的数对
 
namespace  leetcode::count_good_triplets_in_an_array
 LeetCode 5999. 统计数组中好三元组数目
 
namespace  leetcode::count_hills_and_valleys_in_an_array
 LeetCode 6027. Count Hills and Valleys in an Array
 
namespace  leetcode::count_integers_with_even_digit_sum
 LeetCode 6012. 统计各位数字之和为偶数的整数个数
 
namespace  leetcode::count_nodes_with_the_highest_score
 LeetCode 2049. Count Nodes With the Highest Score
 
namespace  leetcode::count_number_of_maximum_bitwise_or_subsets
 LeetCode 2044. Count Number of Maximum Bitwise-OR Subsets
 
namespace  leetcode::count_number_of_pairs_with_absolute_difference_k
 LeetCode 2006. Count Number of Pairs With Absolute Difference K
 
namespace  leetcode::count_numbers_with_unique_digits
 
  1. Count Numbers with Unique Digits

 
namespace  leetcode::count_of_matches_in_tournament
 LeetCode 1688. 比赛中的配对次数
 
namespace  leetcode::count_of_smaller_numbers_after_self
 
  1. 计算右侧小于当前元素的个数

 
namespace  leetcode::count_operations_to_obtain_zero
 LeetCode 6004. 得到 0 的操作数
 
namespace  leetcode::count_special_quadruplets
 
namespace  leetcode::count_the_hidden_sequences
 LeetCode 5972. 统计隐藏数组数目
 
namespace  leetcode::count_words_obtained_after_adding_a_letter
 LeetCode 5978. 统计追加字母可以获得的单词数
 
namespace  leetcode::counting_words_with_a_given_prefix
 LeetCode 6008. 统计包含给定前缀的字符串
 
namespace  leetcode::course_schedule
 
  1. 课程表

 
namespace  leetcode::course_schedule_ii
 
  1. 课程表 II

 
namespace  leetcode::critical_connections_in_a_network
 
  1. 查找集群内的「关键连接」

 
namespace  leetcode::day_of_the_week
 LeetCode 1185. 一周中的第几天
 
namespace  leetcode::decode_string
 
  1. 字符串解码

 
namespace  leetcode::decode_the_slanted_ciphertext
 LeetCode 2075. 解码斜向换位密码
 
namespace  leetcode::decode_ways
 
  1. Decode Ways

 
namespace  leetcode::delete_node_in_a_bst
 
  1. Delete Node in a BST

 
namespace  leetcode::delete_operation_for_two_strings
 
  1. Delete Operation for Two Strings

 
namespace  leetcode::design_bitset
 LeetCode 6002. 设计位集
 
namespace  leetcode::design_linked_list
 
  1. Design Linked List

 
namespace  leetcode::destroying_asteroids
 
namespace  leetcode::different_ways_to_add_parentheses
 
  1. 为运算表达式设计优先级

 
namespace  leetcode::divide_a_string_into_groups_of_size_k
 LeetCode 5980. 将字符串拆分为若干长度为 k 的组
 
namespace  leetcode::divide_chocolate
 
  1. 分享巧克力

 
namespace  leetcode::dungeon_game
 
  1. 地下城游戏

 
namespace  leetcode::edit_distance
 
  1. Edit Distance

 
namespace  leetcode::elimination_game
 
namespace  leetcode::encrypt_and_decrypt_strings
 
  1. 加密解密字符串

 
namespace  leetcode::excel_sheet_column_number
 
namespace  leetcode::excel_sheet_column_title
 
namespace  leetcode::factor_combinations
 
  1. 因子的组合

 
namespace  leetcode::factorial_trailing_zeroes
 
  1. Factorial Trailing Zeroes

 
namespace  leetcode::find_a_peak_element_ii
 
  1. 寻找峰值 II

 
namespace  leetcode::find_all_anagrams_in_a_string
 
  1. Find All Anagrams in a String

 
namespace  leetcode::find_all_k_distant_indices_in_an_array
 LeetCode 6031. 找出数组中的所有 K 近邻下标
 
namespace  leetcode::find_all_lonely_numbers_in_the_array
 LeetCode 5990. 找出数组中的所有孤独数字
 
namespace  leetcode::find_center_of_star_graph
 LeetCode 1791. Find Center of Star Graph
 
namespace  leetcode::find_good_days_to_rob_the_bank
 LeetCode 2100. Find Good Days to Rob the Bank
 
namespace  leetcode::find_missing_observations
 
  1. Find Missing Observations

 
namespace  leetcode::find_palindrome_with_fixed_length
 
  1. 找到指定长度的回文数

 
namespace  leetcode::find_players_with_zero_or_one_losses
 
  1. Find Players With Zero or One Losses

 
namespace  leetcode::find_servers_that_handled_most_number_of_requests
 
  1. Find Servers That Handled Most Number of Requests

 
namespace  leetcode::find_substring_with_given_hash_value
 LeetCode 5994. 查找给定哈希值的子串
 
namespace  leetcode::find_the_closest_palindrome
 LeetCode 564. Find the Closest Palindrome
 
namespace  leetcode::find_the_duplicate_number
 
  1. 寻找重复数

 
namespace  leetcode::find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k
 LeetCode 1414. 和为 K 的最少斐波那契数字数目
 
namespace  leetcode::find_three_consecutive_integers_that_sum_to_a_given_number
 LeetCode 5997. 找到和为给定整数的三个连续整数
 
namespace  leetcode::gray_code
 LeetCode 89. 格雷编码
 
namespace  leetcode::grid_illumination
 LeetCode 1001. Grid Illumination
 
namespace  leetcode::groups_of_strings
 LeetCode 5995. 字符串分组
 
namespace  leetcode::hand_of_straights
 
namespace  leetcode::house_robber
 
  1. House Robber

 
namespace  leetcode::house_robber_ii
 
  1. House Robber II

 
namespace  leetcode::image_smoother
 
  1. Image Smoother

 
namespace  leetcode::increasing_triplet_subsequence
 LeetCode 334. 递增的三元子序列
 
namespace  leetcode::integer_break
 
  1. Integer Break

 
namespace  leetcode::jump_game
 
  1. Jump Game

 
namespace  leetcode::jump_game_ii
 
  1. Jump Game II

 
namespace  leetcode::jump_game_iv
 LeetCode 1345. 跳跃游戏 IV
 
namespace  leetcode::k_th_smallest_in_lexicographical_order
 
  1. K-th Smallest in Lexicographical Order

 
namespace  leetcode::kill_process
 
  1. 杀掉进程

 
namespace  leetcode::knight_probability_in_chessboard
 LeetCode 688. Knight Probability in Chessboard
 
namespace  leetcode::kth_largest_element_in_an_array
 
  1. Kth Largest Element in an Array

 
namespace  leetcode::largest_number_at_least_twice_of_others
 LeetCode 747. 至少是其他数字两倍的最大数
 
namespace  leetcode::leetcode454_4sum_ii
 
  1. 四数相加 II

 
namespace  leetcode::leetcode717_1_bit_and_2_bit_characters
 LeetCode 717. 1比特与2比特字符
 
namespace  leetcode::lfu_cache
 
  1. LFU 缓存

 
namespace  leetcode::longest_common_subsequence
 
  1. Longest Common Subsequence

 
namespace  leetcode::longest_happy_string
 LeetCode 1405. Longest Happy String
 
namespace  leetcode::longest_increasing_path_in_a_matrix
 
  1. 矩阵中的最长递增路径

 
namespace  leetcode::longest_increasing_subsequence
 
  1. Longest Increasing Subsequence

 
namespace  leetcode::longest_mountain_in_array
 LeetCode 845. 数组中的最长山脉
 
namespace  leetcode::longest_nice_substring
 LeetCode 1763. 最长的美好子字符串
 
namespace  leetcode::longest_palindromic_substring
 
  1. Longest Palindromic Substring

 
namespace  leetcode::longest_substring_with_at_most_k_distinct_characters
 
  1. 至多包含 K 个不同字符的最长子串

 
namespace  leetcode::longest_substring_with_at_most_two_distinct_characters
 
  1. 至多包含两个不同字符的最长子串

 
namespace  leetcode::longest_uncommon_subsequence_i
 LeetCode 521. Longest Uncommon Subsequence I
 
namespace  leetcode::longest_word_in_dictionary
 LeetCode 720. Longest Word in Dictionary
 
namespace  leetcode::lowest_common_ancestor_of_a_binary_search_tree
 
  1. Lowest Common Ancestor of a Binary Search Tree

 
namespace  leetcode::lucky_numbers_in_a_matrix
 LeetCode 1380. Lucky Numbers in a Matrix
 
namespace  leetcode::majority_element
 
namespace  leetcode::map_of_highest_peak
 LeetCode 1765. 地图中的最高点
 
namespace  leetcode::max_area_of_island
 LeetCode 695. Max Area of Island
 
namespace  leetcode::max_consecutive_ones_iii
 
  1. 最大连续1的个数 III

 
namespace  leetcode::max_points_on_a_line
 
  1. Max Points on a Line

 
namespace  leetcode::maximal_rectangle
 
  1. 最大矩形

 
namespace  leetcode::maximal_square
 
  1. 最大正方形

 
namespace  leetcode::maximize_number_of_subsequences_in_a_string
 LeetCode 6021. Maximize Number of Subsequences in a String
 
namespace  leetcode::maximize_the_confusion_of_an_exam
 
  1. Maximize the Confusion of an Exam

 
namespace  leetcode::maximize_the_topmost_element_after_k_moves
 LeetCode 5227. K 次操作后最大化顶端元素
 
namespace  leetcode::maximum_and_sum_of_array
 LeetCode 6007. 数组的最大与和
 
namespace  leetcode::maximum_candies_allocated_to_k_children
 
  1. Maximum Candies Allocated to K Children

 
namespace  leetcode::maximum_difference_between_increasing_elements
 LeetCode 2016. Maximum Difference Between Increasing Elements
 
namespace  leetcode::maximum_good_people_based_on_statements
 LeetCode 5992. 基于陈述统计最多好人数
 
namespace  leetcode::maximum_nesting_depth_of_the_parentheses
 LeetCode 1614. 括号的最大嵌套深度
 
namespace  leetcode::maximum_number_of_achievable_transfer_requests
 LeetCode 1601. Maximum Number of Achievable Transfer Requests
 
namespace  leetcode::maximum_number_of_balloons
 LeetCode 1189. “气球” 的最大数量
 
namespace  leetcode::maximum_points_in_an_archery_competition
 LeetCode 6029. Maximum Points in an Archery Competition
 
namespace  leetcode::maximum_product_after_k_increments
 
  1. K 次增加后的最大乘积

 
namespace  leetcode::maximum_running_time_of_n_computers
 LeetCode 5983. 同时运行 N 台电脑的最长时间
 
namespace  leetcode::maximum_size_subarray_sum_equals_k
 
  1. 和等于 k 的最长子数组长度

 
namespace  leetcode::maximum_split_of_positive_even_integers
 LeetCode 5998. 拆分成最多数目的偶整数之和
 
namespace  leetcode::maximum_total_beauty_of_the_gardens
 
  1. 花园的最大总美丽值

 
namespace  leetcode::median_of_two_sorted_arrays
 
  1. 寻找两个正序数组的中位数

 
namespace  leetcode::meeting_scheduler
 
  1. 安排会议日程

 
namespace  leetcode::merge_intervals
 
  1. Merge Intervals

 
namespace  leetcode::minimum_cost_for_tickets
 
  1. 最低票价

 
namespace  leetcode::minimum_cost_of_buying_candies_with_discount
 LeetCode 5971. 打折购买糖果的最小开销
 
namespace  leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid
 
  1. 使网格图至少有一条有效路径的最小代价

 
namespace  leetcode::minimum_difference_between_highest_and_lowest_of_k_scores
 LeetCode 1984. Minimum Difference Between Highest and Lowest of K Scores
 
namespace  leetcode::minimum_difference_in_sums_after_removal_of_elements
 LeetCode 5987. 删除元素后和的最小差值
 
namespace  leetcode::minimum_height_trees
 
  1. Minimum Height Trees

 
namespace  leetcode::minimum_index_sum_of_two_lists
 LeetCode 599. Minimum Index Sum of Two Lists
 
namespace  leetcode::minimum_moves_to_reach_target_score
 LeetCode 5194. 得到目标值的最少行动次数
 
namespace  leetcode::minimum_number_of_k_consecutive_bit_flips
 
  1. K 连续位的最小翻转次数

 
namespace  leetcode::minimum_number_of_moves_to_make_palindrome
 LeetCode 5237. 得到回文串的最少操作次数
 
namespace  leetcode::minimum_number_of_operations_to_convert_time
 
  1. Minimum Number of Operations to Convert Time

 
namespace  leetcode::minimum_number_of_steps_to_make_two_strings_anagram_ii
 LeetCode 6009. 使两字符串互为字母异位词的最少步骤数
 
namespace  leetcode::minimum_operations_to_halve_array_sum
 LeetCode 6022. Minimum Operations to Halve Array Sum
 
namespace  leetcode::minimum_operations_to_make_the_array_alternating
 LeetCode 6005. 使数组变成交替数组的最少操作数
 
namespace  leetcode::minimum_size_subarray_sum
 
  1. Minimum Size Subarray Sum

 
namespace  leetcode::minimum_swaps_to_group_all_1s_together
 
  1. 最少交换次数来组合所有的 1

 
namespace  leetcode::minimum_swaps_to_group_all_1s_together_ii
 LeetCode 5977. 最少交换次数来组合所有的 1 II
 
namespace  leetcode::minimum_time_difference
 LeetCode 539. 最小时间差
 
namespace  leetcode::minimum_time_to_complete_trips
 LeetCode 6010. 完成旅途的最少时间
 
namespace  leetcode::minimum_time_to_finish_the_race
 LeetCode 6011. 完成比赛的最少时间
 
namespace  leetcode::minimum_weighted_subgraph_with_the_required_paths
 LeetCode 6032. 得到要求路径的最小带权子图
 
namespace  leetcode::minimum_white_tiles_after_covering_with_carpets
 LeetCode 6023. Minimum White Tiles After Covering With Carpets
 
namespace  leetcode::minimum_window_substring
 
  1. 最小覆盖子串

 
namespace  leetcode::missing_element_in_sorted_array
 
  1. 有序数组中的缺失元素

 
namespace  leetcode::most_frequent_number_following_key_in_an_array
 LeetCode 6024. 数组中紧跟 key 之后出现最频繁的数字
 
namespace  leetcode::n_queens
 
  1. N 皇后

 
namespace  leetcode::non_overlapping_intervals
 
  1. Non-overlapping Intervals

 
namespace  leetcode::number_of_enclaves
 LeetCode 1020. Number of Enclaves
 
namespace  leetcode::number_of_laser_beams_in_a_bank
 
namespace  leetcode::number_of_lines_to_write_string
 
  1. Number of Lines To Write String

 
namespace  leetcode::number_of_longest_increasing_subsequence
 
  1. Number of Longest Increasing Subsequence

 
namespace  leetcode::number_of_operations_to_make_network_connected
 
  1. 连通网络的操作次数

 
namespace  leetcode::number_of_rectangles_that_can_form_the_largest_square
 LeetCode 1725. 可以形成最大正方形的矩形数目
 
namespace  leetcode::number_of_steps_to_reduce_a_number_to_zero
 LeetCode 1342. 将数字变成 0 的操作次数
 
namespace  leetcode::number_of_valid_words_in_a_sentence
 LeetCode 2047. 句子中的有效单词数
 
namespace  leetcode::number_of_ways_to_divide_a_long_corridor
 LeetCode 5974. 分隔长廊的方案数
 
namespace  leetcode::number_of_ways_to_reconstruct_a_tree
 LeetCode 1719. Number Of Ways To Reconstruct A Tree
 
namespace  leetcode::open_the_lock
 
  1. 打开转盘锁

 
namespace  leetcode::optimal_division
 LeetCode 553. Optimal Division
 
namespace  leetcode::pacific_atlantic_waterflow
 
  1. 太平洋大西洋水流问题

 
namespace  leetcode::palindrome_partitioning
 
  1. 分割回文串

 
namespace  leetcode::palindrome_partitioning_ii
 
  1. 分割回文串 II

 
namespace  leetcode::parallel_courses
 
  1. 并行课程

 
namespace  leetcode::partition_equal_subset_sum
 
  1. 分割等和子集

 
namespace  leetcode::partition_labels
 
  1. Partition Labels

 
namespace  leetcode::path_with_maximum_gold
 LeetCode 1219. Path with Maximum Gold
 
namespace  leetcode::pattern_matching_lcci
 LeetCode 面试题 16.18. 模式匹配
 
namespace  leetcode::perfect_number
 
namespace  leetcode::permutation_in_string
 
  1. Permutation in String

 
namespace  leetcode::permutations
 LeetCode 46. 全排列
 
namespace  leetcode::plates_between_candles
 LeetCode 2055. Plates Between Candles
 
namespace  leetcode::predict_the_winner
 
  1. 预测赢家

 
namespace  leetcode::prime_number_of_set_bits_in_binary_representation
 
  1. Prime Number of Set Bits in Binary Representation

 
namespace  leetcode::process_restricted_friend_requests
 
  1. Process Restricted Friend Requests

 
namespace  leetcode::product_of_array_except_self
 
  1. Product of Array Except Self

 
namespace  leetcode::product_of_two_run_length_encoded_arrays
 
  1. 两个行程编码数组的积

 
namespace  leetcode::projection_area_of_3d_shapes
 
  1. Projection Area of 3D Shapes

 
namespace  leetcode::push_dominoes
 LeetCode 838. 推多米诺
 
namespace  leetcode::reaching_points
 
  1. Reaching Points

 
namespace  leetcode::rearrange_array_elements_by_sign
 LeetCode 5991. 按符号重排数组
 
namespace  leetcode::regular_expression_matching
 
  1. 正则表达式匹配

 
namespace  leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color
 
  1. Remove Colored Pieces if Both Neighbors are the Same Color

 
namespace  leetcode::remove_invalid_parentheses
 
  1. 删除无效的括号

 
namespace  leetcode::remove_palindromic_subsequences
 LeetCode 1332. 删除回文子序列
 
namespace  leetcode::removing_minimum_number_of_magic_beans
 LeetCode 6006. 拿出最少数目的魔法豆
 
namespace  leetcode::replace_all_s_to_avoid_consecutive_repeating_characters
 
namespace  leetcode::replace_non_coprime_numbers_in_array
 LeetCode 6019. 替换数组中的非互质数
 
namespace  leetcode::reverse_only_letters
 LeetCode 917. Reverse Only Letters
 
namespace  leetcode::reverse_prefix_of_word
 LeetCode 2000. 反转单词前缀
 
namespace  leetcode::rotate_string
 
  1. Rotate String

 
namespace  leetcode::search_a_2d_matrix_ii
 
  1. Search a 2D Matrix II

 
namespace  leetcode::second_minimum_time_to_reach_destination
 LeetCode 2045. 到达目的地的第二短时间
 
namespace  leetcode::self_dividing_numbers
 
  1. Self Dividing Numbers

 
namespace  leetcode::serialize_and_deserialize_binary_tree
 
  1. Serialize and Deserialize Binary Tree

 
namespace  leetcode::shortest_distance_to_target_color
 
  1. 与目标颜色间的最短距离

 
namespace  leetcode::shortest_path_to_get_all_keys
 
  1. 获取所有钥匙的最短路径

 
namespace  leetcode::simplified_fractions
 LeetCode 1447. Simplified Fractions
 
namespace  leetcode::simplify_path
 LeetCode 71. 简化路径
 
namespace  leetcode::single_element_in_a_sorted_array
 LeetCode 540. Single Element in a Sorted Array
 
namespace  leetcode::single_number_iii
 
  1. 只出现一次的数字 III

 
namespace  leetcode::sliding_window_maximum
 
  1. 滑动窗口最大值

 
namespace  leetcode::slowest_key
 LeetCode 1629. 按键持续时间最长的键
 
namespace  leetcode::smallest_rotation_with_highest_score
 LeetCode 798. Smallest Rotation with Highest Score
 
namespace  leetcode::smallest_value_of_the_rearranged_number
 LeetCode 6001. 重排数字的最小值
 
namespace  leetcode::sort_colors
 
  1. Sort Colors

 
namespace  leetcode::sort_the_jumbled_numbers
 LeetCode 5217. 将杂乱无章的数字排序
 
namespace  leetcode::spiral_matrix_ii
 
  1. Spiral Matrix II

 
namespace  leetcode::split_array_largest_sum
 
  1. 分割数组的最大值

 
namespace  leetcode::stone_game_ix
 LeetCode 2029. 石子游戏 IX
 
namespace  leetcode::strong_password_checker
 
  1. Strong Password Checker

 
namespace  leetcode::subarray_product_less_than_k
 
  1. Subarray Product Less Than K

 
namespace  leetcode::subarray_sum_equals_k
 
  1. Subarray Sum Equals K

 
namespace  leetcode::sudoku_solver
 
  1. 解数独

 
namespace  leetcode::sum_of_scores_of_built_strings
 
  1. 构造字符串的总得分和

 
namespace  leetcode::sum_of_subarray_ranges
 LeetCode 2104. Sum of Subarray Ranges
 
namespace  leetcode::sum_of_unique_elements
 LeetCode 1748. 唯一元素的和
 
namespace  leetcode::swap_adjacent_in_lr_string
 LeetCode 777. 在LR字符串中交换相邻字符
 
namespace  leetcode::task_scheduler
 
  1. Task Scheduler

 
namespace  leetcode::the_number_of_good_subsets
 LeetCode 1994. 好子集的数目
 
namespace  leetcode::the_time_when_the_network_becomes_idle
 LeetCode 2039. The Time When the Network Becomes Idle
 
namespace  leetcode::trapping_rain_water
 
  1. 接雨水

 
namespace  leetcode::triangle
 
  1. Triangle

 
namespace  leetcode::UhWRSj
 剑指 Offer II 063. 替换单词
 
namespace  leetcode::unique_paths
 
  1. Unique Paths

 
namespace  leetcode::utf_8_validation
 LeetCode 393. UTF-8 Validation
 
namespace  leetcode::walls_and_gates
 
  1. 墙与门

 
namespace  leetcode::where_will_the_ball_fall
 LeetCode 1706. Where Will the Ball Fall
 
namespace  leetcode::word_break
 
  1. Word Break

 
namespace  leetcode::zigzag_conversion
 LeetCode 6. ZigZag Conversion
 

函数

bool leetcode::delete_node_in_a_bst::equal (TreeNode *tn1, TreeNode *tn2)
 
 leetcode::add_digits::TEST (add_digits, case1)
 
 leetcode::add_digits::TEST (add_digits, case2)
 
 leetcode::additive_number::TEST (additive_number, case1)
 
 leetcode::additive_number::TEST (additive_number, case2)
 
 leetcode::additive_number::TEST (additive_number, case3)
 
 leetcode::additive_number::TEST (additive_number, case4)
 
 leetcode::additive_number::TEST (additive_number, case5)
 
 leetcode::alien_dictionary::TEST (alien_dictionary, case1)
 
 leetcode::alien_dictionary::TEST (alien_dictionary, case2)
 
 leetcode::alien_dictionary::TEST (alien_dictionary, case3)
 
 leetcode::alien_dictionary::TEST (alien_dictionary, case4)
 
 leetcode::alien_dictionary::TEST (alien_dictionary, case5)
 
 leetcode::all_ancestors_of_a_node_in_a_directed_acyclic_graph::TEST (all_ancestors_of_a_node_in_a_directed_acyclic_graph, case1)
 
 leetcode::all_ancestors_of_a_node_in_a_directed_acyclic_graph::TEST (all_ancestors_of_a_node_in_a_directed_acyclic_graph, case2)
 
 leetcode::all_oone_data_structure::TEST (all_oone_data_structure, case1)
 
 leetcode::append_k_integers_with_minimal_sum::TEST (append_k_integers_with_minimal_sum, case1)
 
 leetcode::append_k_integers_with_minimal_sum::TEST (append_k_integers_with_minimal_sum, case2)
 
 leetcode::append_k_integers_with_minimal_sum::TEST (append_k_integers_with_minimal_sum, case3)
 
 leetcode::append_k_integers_with_minimal_sum::TEST (append_k_integers_with_minimal_sum, case4)
 
 leetcode::append_k_integers_with_minimal_sum::TEST (append_k_integers_with_minimal_sum, case5)
 
 leetcode::arithmetic_slices::TEST (arithmetic_slices, case1)
 
 leetcode::arithmetic_slices::TEST (arithmetic_slices, case2)
 
 leetcode::array_of_doubled_pairs::TEST (array_of_doubled_pairs, case1)
 
 leetcode::array_of_doubled_pairs::TEST (array_of_doubled_pairs, case2)
 
 leetcode::base_7::TEST (base_7, case1)
 
 leetcode::base_7::TEST (base_7, case2)
 
 leetcode::baseball_game::TEST (baseball_game, case1)
 
 leetcode::baseball_game::TEST (baseball_game, case2)
 
 leetcode::baseball_game::TEST (baseball_game, case3)
 
 leetcode::best_time_to_buy_and_sell_stock_iii::TEST (best_time_to_buy_and_sell_stock_iii, case1)
 
 leetcode::best_time_to_buy_and_sell_stock_iii::TEST (best_time_to_buy_and_sell_stock_iii, case2)
 
 leetcode::best_time_to_buy_and_sell_stock_iii::TEST (best_time_to_buy_and_sell_stock_iii, case3)
 
 leetcode::best_time_to_buy_and_sell_stock_iii::TEST (best_time_to_buy_and_sell_stock_iii, case4)
 
 leetcode::best_time_to_buy_and_sell_stock_with_cooldown::TEST (best_time_to_buy_and_sell_stock_with_cooldown, case1)
 
 leetcode::best_time_to_buy_and_sell_stock_with_cooldown::TEST (best_time_to_buy_and_sell_stock_with_cooldown, case2)
 
 leetcode::best_time_to_buy_and_sell_stock_with_cooldown::TEST (best_time_to_buy_and_sell_stock_with_cooldown, case3)
 
 leetcode::best_time_to_buy_and_sell_stock_with_transaction_fee::TEST (best_time_to_buy_and_sell_stock_with_transaction_fee, case1)
 
 leetcode::best_time_to_buy_and_sell_stock_with_transaction_fee::TEST (best_time_to_buy_and_sell_stock_with_transaction_fee, case2)
 
 leetcode::binary_number_with_alternating_bits::TEST (binary_number_with_alternating_bits, case1)
 
 leetcode::binary_number_with_alternating_bits::TEST (binary_number_with_alternating_bits, case2)
 
 leetcode::binary_number_with_alternating_bits::TEST (binary_number_with_alternating_bits, case3)
 
 leetcode::calculate_money_in_leetcode_bank::TEST (calculate_money_in_leetcode_bank, case1)
 
 leetcode::calculate_money_in_leetcode_bank::TEST (calculate_money_in_leetcode_bank, case2)
 
 leetcode::calculate_money_in_leetcode_bank::TEST (calculate_money_in_leetcode_bank, case3)
 
 leetcode::cells_in_a_range_on_an_excel_sheet::TEST (cells_in_a_range_on_an_excel_sheet, case1)
 
 leetcode::cells_in_a_range_on_an_excel_sheet::TEST (cells_in_a_range_on_an_excel_sheet, case2)
 
 leetcode::check_if_all_as_appears_before_all_bs::TEST (check_if_all_as_appears_before_all_bs, case1)
 
 leetcode::check_if_all_as_appears_before_all_bs::TEST (check_if_all_as_appears_before_all_bs, case2)
 
 leetcode::check_if_all_as_appears_before_all_bs::TEST (check_if_all_as_appears_before_all_bs, case3)
 
 leetcode::coin_change::TEST (coin_change, case1)
 
 leetcode::coin_change::TEST (coin_change, case2)
 
 leetcode::coin_change::TEST (coin_change, case3)
 
 leetcode::coin_change::TEST (coin_change, case4)
 
 leetcode::coin_change::TEST (coin_change, case5)
 
 leetcode::complex_number_multiplication::TEST (complex_number_multiplication, case1)
 
 leetcode::complex_number_multiplication::TEST (complex_number_multiplication, case2)
 
 leetcode::concatenated_words::TEST (concatenated_words, case1)
 
 leetcode::concatenated_words::TEST (concatenated_words, case2)
 
 leetcode::concatenated_words::TEST (concatenated_words, case4)
 
 leetcode::construct_string_with_repeat_limit::TEST (construct_string_with_repeat_limit, case1)
 
 leetcode::construct_string_with_repeat_limit::TEST (construct_string_with_repeat_limit, case2)
 
 leetcode::construct_string_with_repeat_limit::TEST (construct_string_with_repeat_limit, case3)
 
 leetcode::contains_duplicate_ii::TEST (contains_duplicate_ii, case1)
 
 leetcode::contains_duplicate_ii::TEST (contains_duplicate_ii, case2)
 
 leetcode::contains_duplicate_ii::TEST (contains_duplicate_ii, case3)
 
 leetcode::convert_1d_array_into_2d_array::TEST (convert_1d_array_into_2d_array, case1)
 
 leetcode::convert_bst_to_greater_tree::TEST (convert_bst_to_greater_tree, case1)
 
 leetcode::coun_vowels_permutation::TEST (coun_vowels_permutation, case1)
 
 leetcode::coun_vowels_permutation::TEST (coun_vowels_permutation, case2)
 
 leetcode::coun_vowels_permutation::TEST (coun_vowels_permutation, case3)
 
 leetcode::count_array_pairs_divisible_by_k::TEST (count_array_pairs_divisible_by_k, case1)
 
 leetcode::count_array_pairs_divisible_by_k::TEST (count_array_pairs_divisible_by_k, case2)
 
 leetcode::count_array_pairs_divisible_by_k::TEST (count_array_pairs_divisible_by_k, case3)
 
 leetcode::count_artifacts_that_can_be_extracted::TEST (count_artifacts_that_can_be_extracted, case1)
 
 leetcode::count_artifacts_that_can_be_extracted::TEST (count_artifacts_that_can_be_extracted, case2)
 
 leetcode::count_collisions_on_a_road::TEST (count_collisions_on_a_road, case1)
 
 leetcode::count_collisions_on_a_road::TEST (count_collisions_on_a_road, case2)
 
 leetcode::count_elements_with_strictly_smaller_and_greater_elements::TEST (count_elements_with_strictly_smaller_and_greater_elements, case1)
 
 leetcode::count_elements_with_strictly_smaller_and_greater_elements::TEST (count_elements_with_strictly_smaller_and_greater_elements, case2)
 
 leetcode::count_equal_and_divisible_pairs_in_an_array::TEST (count_equal_and_divisible_pairs_in_an_array, case1)
 
 leetcode::count_equal_and_divisible_pairs_in_an_array::TEST (count_equal_and_divisible_pairs_in_an_array, case2)
 
 leetcode::count_good_triplets_in_an_array::TEST (count_good_triplets_in_an_array, case1)
 
 leetcode::count_good_triplets_in_an_array::TEST (count_good_triplets_in_an_array, case2)
 
 leetcode::count_hills_and_valleys_in_an_array::TEST (count_hills_and_valleys_in_an_array, case1)
 
 leetcode::count_hills_and_valleys_in_an_array::TEST (count_hills_and_valleys_in_an_array, case2)
 
 leetcode::count_integers_with_even_digit_sum::TEST (count_integers_with_even_digit_sum, case1)
 
 leetcode::count_integers_with_even_digit_sum::TEST (count_integers_with_even_digit_sum, case2)
 
 leetcode::count_nodes_with_the_highest_score::TEST (count_nodes_with_the_highest_score, case1)
 
 leetcode::count_nodes_with_the_highest_score::TEST (count_nodes_with_the_highest_score, case2)
 
 leetcode::count_number_of_maximum_bitwise_or_subsets::TEST (count_number_of_maximum_bitwise_or_subsets, case1)
 
 leetcode::count_number_of_maximum_bitwise_or_subsets::TEST (count_number_of_maximum_bitwise_or_subsets, case2)
 
 leetcode::count_number_of_maximum_bitwise_or_subsets::TEST (count_number_of_maximum_bitwise_or_subsets, case3)
 
 leetcode::count_number_of_pairs_with_absolute_difference_k::TEST (count_number_of_pairs_with_absolute_difference_k, case1)
 
 leetcode::count_number_of_pairs_with_absolute_difference_k::TEST (count_number_of_pairs_with_absolute_difference_k, case2)
 
 leetcode::count_number_of_pairs_with_absolute_difference_k::TEST (count_number_of_pairs_with_absolute_difference_k, case3)
 
 leetcode::count_numbers_with_unique_digits::TEST (count_numbers_with_unique_digits, case1)
 
 leetcode::count_numbers_with_unique_digits::TEST (count_numbers_with_unique_digits, case2)
 
 leetcode::count_of_matches_in_tournament::TEST (count_of_matches_in_tournament, case1)
 
 leetcode::count_of_matches_in_tournament::TEST (count_of_matches_in_tournament, case2)
 
 leetcode::count_of_smaller_numbers_after_self::TEST (count_of_smaller_numbers_after_self, case1)
 
 leetcode::count_of_smaller_numbers_after_self::TEST (count_of_smaller_numbers_after_self, case2)
 
 leetcode::count_of_smaller_numbers_after_self::TEST (count_of_smaller_numbers_after_self, case3)
 
 leetcode::count_operations_to_obtain_zero::TEST (count_operations_to_obtain_zero, case1)
 
 leetcode::count_operations_to_obtain_zero::TEST (count_operations_to_obtain_zero, case2)
 
 leetcode::count_special_quadruplets::TEST (count_special_quadruplets, case1)
 
 leetcode::count_special_quadruplets::TEST (count_special_quadruplets, case2)
 
 leetcode::count_special_quadruplets::TEST (count_special_quadruplets, case3)
 
 leetcode::count_special_quadruplets::TEST (count_special_quadruplets, case4)
 
 leetcode::count_the_hidden_sequences::TEST (count_the_hidden_sequences, case1)
 
 leetcode::count_the_hidden_sequences::TEST (count_the_hidden_sequences, case2)
 
 leetcode::count_the_hidden_sequences::TEST (count_the_hidden_sequences, case3)
 
 leetcode::count_words_obtained_after_adding_a_letter::TEST (count_words_obtained_after_adding_a_letter, case1)
 
 leetcode::count_words_obtained_after_adding_a_letter::TEST (count_words_obtained_after_adding_a_letter, case2)
 
 leetcode::count_words_obtained_after_adding_a_letter::TEST (count_words_obtained_after_adding_a_letter, case3)
 
 leetcode::counting_words_with_a_given_prefix::TEST (counting_words_with_a_given_prefix, case1)
 
 leetcode::counting_words_with_a_given_prefix::TEST (counting_words_with_a_given_prefix, case2)
 
 leetcode::course_schedule::TEST (course_schedule, case1)
 
 leetcode::course_schedule::TEST (course_schedule, case2)
 
 leetcode::course_schedule_ii::TEST (course_schedule_ii, case1)
 
 leetcode::course_schedule_ii::TEST (course_schedule_ii, case2)
 
 leetcode::course_schedule_ii::TEST (course_schedule_ii, case3)
 
 leetcode::critical_connections_in_a_network::TEST (critical_connections_in_a_network, case1)
 
 leetcode::critical_connections_in_a_network::TEST (critical_connections_in_a_network, case2)
 
 leetcode::critical_connections_in_a_network::TEST (critical_connections_in_a_network, case3)
 
 leetcode::day_of_the_week::TEST (day_of_the_week, case1)
 
 leetcode::day_of_the_week::TEST (day_of_the_week, case2)
 
 leetcode::day_of_the_week::TEST (day_of_the_week, case3)
 
 leetcode::day_of_the_week::TEST (day_of_the_week, case4)
 
 leetcode::day_of_the_week::TEST (day_of_the_week, case5)
 
 leetcode::decode_string::TEST (decode_string, case1)
 
 leetcode::decode_string::TEST (decode_string, case2)
 
 leetcode::decode_string::TEST (decode_string, case3)
 
 leetcode::decode_string::TEST (decode_string, case4)
 
 leetcode::decode_the_slanted_ciphertext::TEST (decode_the_slanted_ciphertext, case1)
 
 leetcode::decode_the_slanted_ciphertext::TEST (decode_the_slanted_ciphertext, case2)
 
 leetcode::decode_the_slanted_ciphertext::TEST (decode_the_slanted_ciphertext, case3)
 
 leetcode::decode_the_slanted_ciphertext::TEST (decode_the_slanted_ciphertext, case4)
 
 leetcode::decode_ways::TEST (decode_ways, case1)
 
 leetcode::decode_ways::TEST (decode_ways, case2)
 
 leetcode::decode_ways::TEST (decode_ways, case3)
 
 leetcode::decode_ways::TEST (decode_ways, case4)
 
 leetcode::delete_node_in_a_bst::TEST (delete_node_in_a_bst, case1)
 
 leetcode::delete_node_in_a_bst::TEST (delete_node_in_a_bst, case2)
 
 leetcode::delete_node_in_a_bst::TEST (delete_node_in_a_bst, case3)
 
 leetcode::delete_node_in_a_bst::TEST (delete_node_in_a_bst, case4)
 
 leetcode::delete_operation_for_two_strings::TEST (delete_operation_for_two_strings, case1)
 
 leetcode::delete_operation_for_two_strings::TEST (delete_operation_for_two_strings, case2)
 
 leetcode::design_bitset::TEST (design_bitset, case1)
 
 leetcode::design_linked_list::TEST (design_linked_list, case1)
 
 leetcode::destroying_asteroids::TEST (destroying_asteroids, case1)
 
 leetcode::destroying_asteroids::TEST (destroying_asteroids, case2)
 
 leetcode::additive_number::TEST (dfs, case1)
 
 leetcode::additive_number::TEST (dfs, case2)
 
 leetcode::additive_number::TEST (dfs, case3)
 
 leetcode::additive_number::TEST (dfs, case4)
 
 leetcode::different_ways_to_add_parentheses::TEST (different_ways_to_add_parentheses, case1)
 
 leetcode::different_ways_to_add_parentheses::TEST (different_ways_to_add_parentheses, case2)
 
 leetcode::divide_a_string_into_groups_of_size_k::TEST (divide_a_string_into_groups_of_size_k, case1)
 
 leetcode::divide_a_string_into_groups_of_size_k::TEST (divide_a_string_into_groups_of_size_k, case2)
 
 leetcode::divide_a_string_into_groups_of_size_k::TEST (divide_a_string_into_groups_of_size_k, case3)
 
 leetcode::divide_chocolate::TEST (divide_chocolate, case1)
 
 leetcode::divide_chocolate::TEST (divide_chocolate, case2)
 
 leetcode::divide_chocolate::TEST (divide_chocolate, case3)
 
 leetcode::dungeon_game::TEST (dungeon_game, case1)
 
 leetcode::dungeon_game::TEST (dungeon_game, case2)
 
 leetcode::dungeon_game::TEST (dungeon_game, case3)
 
 leetcode::edit_distance::TEST (edit_distance, case1)
 
 leetcode::edit_distance::TEST (edit_distance, case2)
 
 leetcode::elimination_game::TEST (elimination_game, case1)
 
 leetcode::encrypt_and_decrypt_strings::TEST (encrypt_and_decrypt_strings, case1)
 
 leetcode::additive_number::TEST (equal, case1)
 
 leetcode::additive_number::TEST (equal, case2)
 
 leetcode::additive_number::TEST (equal, case3)
 
 leetcode::additive_number::TEST (equal, case4)
 
 leetcode::additive_number::TEST (equal, case5)
 
 leetcode::excel_sheet_column_number::TEST (excel_sheet_column_number, case1)
 
 leetcode::excel_sheet_column_number::TEST (excel_sheet_column_number, case2)
 
 leetcode::excel_sheet_column_number::TEST (excel_sheet_column_number, case3)
 
 leetcode::excel_sheet_column_number::TEST (excel_sheet_column_number, case4)
 
 leetcode::excel_sheet_column_title::TEST (excel_sheet_column_title, case1)
 
 leetcode::excel_sheet_column_title::TEST (excel_sheet_column_title, case2)
 
 leetcode::excel_sheet_column_title::TEST (excel_sheet_column_title, case3)
 
 leetcode::excel_sheet_column_title::TEST (excel_sheet_column_title, case4)
 
 leetcode::excel_sheet_column_title::TEST (excel_sheet_column_title, case5)
 
 leetcode::factor_combinations::TEST (factor_combinations, case1)
 
 leetcode::factor_combinations::TEST (factor_combinations, case2)
 
 leetcode::factor_combinations::TEST (factor_combinations, case3)
 
 leetcode::factor_combinations::TEST (factor_combinations, case4)
 
 leetcode::factorial_trailing_zeroes::TEST (factorial_trailing_zeroes, case1)
 
 leetcode::factorial_trailing_zeroes::TEST (factorial_trailing_zeroes, case2)
 
 leetcode::factorial_trailing_zeroes::TEST (factorial_trailing_zeroes, case3)
 
 leetcode::find_a_peak_element_ii::TEST (find_a_peak_element_ii, case1)
 
 leetcode::find_a_peak_element_ii::TEST (find_a_peak_element_ii, case2)
 
 leetcode::find_all_anagrams_in_a_string::TEST (find_all_anagrams_in_a_string, case1)
 
 leetcode::find_all_anagrams_in_a_string::TEST (find_all_anagrams_in_a_string, case2)
 
 leetcode::find_all_k_distant_indices_in_an_array::TEST (find_all_k_distant_indices_in_an_array, case1)
 
 leetcode::find_all_k_distant_indices_in_an_array::TEST (find_all_k_distant_indices_in_an_array, case2)
 
 leetcode::find_all_lonely_numbers_in_the_array::TEST (find_all_lonely_numbers_in_the_array, case1)
 
 leetcode::find_all_lonely_numbers_in_the_array::TEST (find_all_lonely_numbers_in_the_array, case2)
 
 leetcode::find_center_of_star_graph::TEST (find_center_of_star_graph, case1)
 
 leetcode::find_center_of_star_graph::TEST (find_center_of_star_graph, case2)
 
 leetcode::find_good_days_to_rob_the_bank::TEST (find_good_days_to_rob_the_bank, case1)
 
 leetcode::find_good_days_to_rob_the_bank::TEST (find_good_days_to_rob_the_bank, case2)
 
 leetcode::find_good_days_to_rob_the_bank::TEST (find_good_days_to_rob_the_bank, case3)
 
 leetcode::find_good_days_to_rob_the_bank::TEST (find_good_days_to_rob_the_bank, case4)
 
 leetcode::find_missing_observations::TEST (find_missing_observations, case1)
 
 leetcode::find_missing_observations::TEST (find_missing_observations, case3)
 
 leetcode::find_palindrome_with_fixed_length::TEST (find_palindrome_with_fixed_length, case1)
 
 leetcode::find_palindrome_with_fixed_length::TEST (find_palindrome_with_fixed_length, case2)
 
 leetcode::find_palindrome_with_fixed_length::TEST (find_palindrome_with_fixed_length, case4)
 
 leetcode::find_palindrome_with_fixed_length::TEST (find_palindrome_with_fixed_length, case5)
 
 leetcode::find_palindrome_with_fixed_length::TEST (find_palindrome_with_fixed_length, case7)
 
 leetcode::find_players_with_zero_or_one_losses::TEST (find_players_with_zero_or_one_losses, case1)
 
 leetcode::find_players_with_zero_or_one_losses::TEST (find_players_with_zero_or_one_losses, case2)
 
 leetcode::find_servers_that_handled_most_number_of_requests::TEST (find_servers_that_handled_most_number_of_requests, case1)
 
 leetcode::find_servers_that_handled_most_number_of_requests::TEST (find_servers_that_handled_most_number_of_requests, case2)
 
 leetcode::find_servers_that_handled_most_number_of_requests::TEST (find_servers_that_handled_most_number_of_requests, case3)
 
 leetcode::find_servers_that_handled_most_number_of_requests::TEST (find_servers_that_handled_most_number_of_requests, case4)
 
 leetcode::find_substring_with_given_hash_value::TEST (find_substring_with_given_hash_value, case1)
 
 leetcode::find_substring_with_given_hash_value::TEST (find_substring_with_given_hash_value, case2)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case1)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case2)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case3)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case4)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case5)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case6)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case7)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case8)
 
 leetcode::find_the_closest_palindrome::TEST (find_the_closest_palindrome, case9)
 
 leetcode::find_the_duplicate_number::TEST (find_the_duplicate_number, case1)
 
 leetcode::find_the_duplicate_number::TEST (find_the_duplicate_number, case2)
 
 leetcode::find_the_duplicate_number::TEST (find_the_duplicate_number, case3)
 
 leetcode::find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k::TEST (find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k, case1)
 
 leetcode::find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k::TEST (find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k, case2)
 
 leetcode::find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k::TEST (find_the_minimum_number_of_fibonacci_numbers_whose_sum_is_k, case3)
 
 leetcode::find_three_consecutive_integers_that_sum_to_a_given_number::TEST (find_three_consecutive_integers_that_sum_to_a_given_number, case1)
 
 leetcode::find_three_consecutive_integers_that_sum_to_a_given_number::TEST (find_three_consecutive_integers_that_sum_to_a_given_number, case2)
 
 leetcode::gray_code::TEST (gray_code, case1)
 
 leetcode::grid_illumination::TEST (grid_illumination, case1)
 
 leetcode::grid_illumination::TEST (grid_illumination, case2)
 
 leetcode::grid_illumination::TEST (grid_illumination, case3)
 
 leetcode::grid_illumination::TEST (grid_illumination, case4)
 
 leetcode::grid_illumination::TEST (grid_illumination, case5)
 
 leetcode::groups_of_strings::TEST (groups_of_strings, case1)
 
 leetcode::groups_of_strings::TEST (groups_of_strings, case2)
 
 leetcode::groups_of_strings::TEST (groups_of_strings, case3)
 
 leetcode::groups_of_strings::TEST (groups_of_strings, case4)
 
 leetcode::groups_of_strings::TEST (groups_of_strings, case5)
 
 leetcode::hand_of_straights::TEST (hand_of_straights, case1)
 
 leetcode::hand_of_straights::TEST (hand_of_straights, case2)
 
 leetcode::hand_of_straights::TEST (hand_of_straights, case3)
 
 leetcode::hand_of_straights::TEST (hand_of_straights, case4)
 
 leetcode::house_robber::TEST (house_robber, case1)
 
 leetcode::house_robber::TEST (house_robber, case2)
 
 leetcode::house_robber_ii::TEST (house_robber_ii, case1)
 
 leetcode::house_robber_ii::TEST (house_robber_ii, case2)
 
 leetcode::house_robber_ii::TEST (house_robber_ii, case3)
 
 leetcode::image_smoother::TEST (image_smoother, case1)
 
 leetcode::image_smoother::TEST (image_smoother, case2)
 
 leetcode::increasing_triplet_subsequence::TEST (increasing_triplet_subsequence, case1)
 
 leetcode::increasing_triplet_subsequence::TEST (increasing_triplet_subsequence, case2)
 
 leetcode::increasing_triplet_subsequence::TEST (increasing_triplet_subsequence, case3)
 
 leetcode::increasing_triplet_subsequence::TEST (increasing_triplet_subsequence, case4)
 
 leetcode::integer_break::TEST (integer_break, case1)
 
 leetcode::integer_break::TEST (integer_break, case2)
 
 leetcode::jump_game::TEST (jump_game, case1)
 
 leetcode::jump_game::TEST (jump_game, case2)
 
 leetcode::jump_game_ii::TEST (jump_game_ii, case1)
 
 leetcode::jump_game_ii::TEST (jump_game_ii, case2)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case1)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case2)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case3)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case4)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case5)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case6)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case7)
 
 leetcode::jump_game_iv::TEST (jump_game_iv, case8)
 
 leetcode::k_th_smallest_in_lexicographical_order::TEST (k_th_smallest_in_lexicographical_order, case1)
 
 leetcode::k_th_smallest_in_lexicographical_order::TEST (k_th_smallest_in_lexicographical_order, case2)
 
 leetcode::kill_process::TEST (kill_process, case1)
 
 leetcode::kill_process::TEST (kill_process, case2)
 
 leetcode::knight_probability_in_chessboard::TEST (knight_probability_in_chessboard, case1)
 
 leetcode::knight_probability_in_chessboard::TEST (knight_probability_in_chessboard, case2)
 
 leetcode::kth_largest_element_in_an_array::TEST (kth_largest_element_in_an_array, case1)
 
 leetcode::kth_largest_element_in_an_array::TEST (kth_largest_element_in_an_array, case2)
 
 leetcode::largest_number_at_least_twice_of_others::TEST (largest_number_at_least_twice_of_others, case1)
 
 leetcode::largest_number_at_least_twice_of_others::TEST (largest_number_at_least_twice_of_others, case2)
 
 leetcode::largest_number_at_least_twice_of_others::TEST (largest_number_at_least_twice_of_others, case3)
 
 leetcode::largest_number_at_least_twice_of_others::TEST (largest_number_at_least_twice_of_others, case4)
 
 leetcode::largest_number_at_least_twice_of_others::TEST (largest_number_at_least_twice_of_others, case5)
 
 leetcode::leetcode454_4sum_ii::TEST (leetcode454_4sum_ii, case1)
 
 leetcode::leetcode454_4sum_ii::TEST (leetcode454_4sum_ii, case2)
 
 leetcode::leetcode717_1_bit_and_2_bit_characters::TEST (leetcode717_1_bit_and_2_bit_characters, case1)
 
 leetcode::leetcode717_1_bit_and_2_bit_characters::TEST (leetcode717_1_bit_and_2_bit_characters, case2)
 
 leetcode::lfu_cache::TEST (lfu_cache, case1)
 
 leetcode::longest_common_subsequence::TEST (longest_common_subsequence, case1)
 
 leetcode::longest_common_subsequence::TEST (longest_common_subsequence, case2)
 
 leetcode::longest_common_subsequence::TEST (longest_common_subsequence, case3)
 
 leetcode::longest_common_subsequence::TEST (longest_common_subsequence, case4)
 
 leetcode::longest_happy_string::TEST (longest_happy_string, case1)
 
 leetcode::longest_happy_string::TEST (longest_happy_string, case2)
 
 leetcode::longest_increasing_path_in_a_matrix::TEST (longest_increasing_path_in_a_matrix, case1)
 
 leetcode::longest_increasing_path_in_a_matrix::TEST (longest_increasing_path_in_a_matrix, case2)
 
 leetcode::longest_increasing_path_in_a_matrix::TEST (longest_increasing_path_in_a_matrix, case3)
 
 leetcode::longest_increasing_path_in_a_matrix::TEST (longest_increasing_path_in_a_matrix, case4)
 
 leetcode::longest_increasing_subsequence::TEST (longest_increasing_subsequence, case1)
 
 leetcode::longest_increasing_subsequence::TEST (longest_increasing_subsequence, case2)
 
 leetcode::longest_increasing_subsequence::TEST (longest_increasing_subsequence, case3)
 
 leetcode::longest_mountain_in_array::TEST (longest_mountain_in_array, case1)
 
 leetcode::longest_mountain_in_array::TEST (longest_mountain_in_array, case2)
 
 leetcode::longest_nice_substring::TEST (longest_nice_substring, case1)
 
 leetcode::longest_nice_substring::TEST (longest_nice_substring, case2)
 
 leetcode::longest_nice_substring::TEST (longest_nice_substring, case3)
 
 leetcode::longest_nice_substring::TEST (longest_nice_substring, case4)
 
 leetcode::longest_palindromic_substring::TEST (longest_palindromic_substring, case1)
 
 leetcode::longest_palindromic_substring::TEST (longest_palindromic_substring, case2)
 
 leetcode::longest_palindromic_substring::TEST (longest_palindromic_substring, case3)
 
 leetcode::longest_palindromic_substring::TEST (longest_palindromic_substring, case4)
 
 leetcode::longest_palindromic_substring::TEST (longest_palindromic_substring, case5)
 
 leetcode::longest_palindromic_substring::TEST (longest_palindromic_substring, case6)
 
 leetcode::longest_substring_with_at_most_k_distinct_characters::TEST (longest_substring_with_at_most_k_distinct_characters, case1)
 
 leetcode::longest_substring_with_at_most_k_distinct_characters::TEST (longest_substring_with_at_most_k_distinct_characters, case2)
 
 leetcode::longest_substring_with_at_most_two_distinct_characters::TEST (longest_substring_with_at_most_two_distinct_characters, case1)
 
 leetcode::longest_substring_with_at_most_two_distinct_characters::TEST (longest_substring_with_at_most_two_distinct_characters, case2)
 
 leetcode::longest_uncommon_subsequence_i::TEST (longest_uncommon_subsequence_i, case1)
 
 leetcode::longest_uncommon_subsequence_i::TEST (longest_uncommon_subsequence_i, case2)
 
 leetcode::longest_uncommon_subsequence_i::TEST (longest_uncommon_subsequence_i, case3)
 
 leetcode::longest_word_in_dictionary::TEST (longest_word_in_dictionary, case1)
 
 leetcode::longest_word_in_dictionary::TEST (longest_word_in_dictionary, case2)
 
 leetcode::lowest_common_ancestor_of_a_binary_search_tree::TEST (lowest_common_ancestor_of_a_binary_search_tree, case1)
 
 leetcode::lucky_numbers_in_a_matrix::TEST (lucky_numbers_in_a_matrix, case1)
 
 leetcode::lucky_numbers_in_a_matrix::TEST (lucky_numbers_in_a_matrix, case2)
 
 leetcode::lucky_numbers_in_a_matrix::TEST (lucky_numbers_in_a_matrix, case3)
 
 leetcode::majority_element::TEST (majority_element, case1)
 
 leetcode::majority_element::TEST (majority_element, case2)
 
 leetcode::majority_element::TEST (majority_element, case3)
 
 leetcode::map_of_highest_peak::TEST (map_of_highest_peak, case1)
 
 leetcode::map_of_highest_peak::TEST (map_of_highest_peak, case2)
 
 leetcode::max_area_of_island::TEST (max_area_of_island, case1)
 
 leetcode::max_area_of_island::TEST (max_area_of_island, case2)
 
 leetcode::max_consecutive_ones_iii::TEST (max_consecutive_ones_iii, case1)
 
 leetcode::max_consecutive_ones_iii::TEST (max_consecutive_ones_iii, case2)
 
 leetcode::max_points_on_a_line::TEST (max_points_on_a_line, case1)
 
 leetcode::max_points_on_a_line::TEST (max_points_on_a_line, case2)
 
 leetcode::maximal_rectangle::TEST (maximal_rectangle, case1)
 
 leetcode::maximal_rectangle::TEST (maximal_rectangle, case2)
 
 leetcode::maximal_rectangle::TEST (maximal_rectangle, case3)
 
 leetcode::maximal_rectangle::TEST (maximal_rectangle, case4)
 
 leetcode::maximal_rectangle::TEST (maximal_rectangle, case5)
 
 leetcode::maximal_square::TEST (maximal_square, case1)
 
 leetcode::maximal_square::TEST (maximal_square, case2)
 
 leetcode::maximal_square::TEST (maximal_square, case3)
 
 leetcode::maximize_number_of_subsequences_in_a_string::TEST (maximize_number_of_subsequences_in_a_string, case1)
 
 leetcode::maximize_number_of_subsequences_in_a_string::TEST (maximize_number_of_subsequences_in_a_string, case2)
 
 leetcode::maximize_the_confusion_of_an_exam::TEST (maximize_the_confusion_of_an_exam, case1)
 
 leetcode::maximize_the_confusion_of_an_exam::TEST (maximize_the_confusion_of_an_exam, case2)
 
 leetcode::maximize_the_confusion_of_an_exam::TEST (maximize_the_confusion_of_an_exam, case3)
 
 leetcode::maximize_the_confusion_of_an_exam::TEST (maximize_the_confusion_of_an_exam, case4)
 
 leetcode::maximize_the_topmost_element_after_k_moves::TEST (maximize_the_topmost_element_after_k_moves, case1)
 
 leetcode::maximize_the_topmost_element_after_k_moves::TEST (maximize_the_topmost_element_after_k_moves, case2)
 
 leetcode::maximum_and_sum_of_array::TEST (maximum_and_sum_of_array, case1)
 
 leetcode::maximum_and_sum_of_array::TEST (maximum_and_sum_of_array, case2)
 
 leetcode::maximum_candies_allocated_to_k_children::TEST (maximum_candies_allocated_to_k_children, case1)
 
 leetcode::maximum_candies_allocated_to_k_children::TEST (maximum_candies_allocated_to_k_children, case2)
 
 leetcode::maximum_candies_allocated_to_k_children::TEST (maximum_candies_allocated_to_k_children, case3)
 
 leetcode::maximum_candies_allocated_to_k_children::TEST (maximum_candies_allocated_to_k_children, case4)
 
 leetcode::maximum_difference_between_increasing_elements::TEST (maximum_difference_between_increasing_elements, case1)
 
 leetcode::maximum_difference_between_increasing_elements::TEST (maximum_difference_between_increasing_elements, case2)
 
 leetcode::maximum_difference_between_increasing_elements::TEST (maximum_difference_between_increasing_elements, case3)
 
 leetcode::maximum_good_people_based_on_statements::TEST (maximum_good_people_based_on_statements, case1)
 
 leetcode::maximum_good_people_based_on_statements::TEST (maximum_good_people_based_on_statements, case2)
 
 leetcode::maximum_nesting_depth_of_the_parentheses::TEST (maximum_nesting_depth_of_the_parentheses, case1)
 
 leetcode::maximum_nesting_depth_of_the_parentheses::TEST (maximum_nesting_depth_of_the_parentheses, case2)
 
 leetcode::maximum_nesting_depth_of_the_parentheses::TEST (maximum_nesting_depth_of_the_parentheses, case3)
 
 leetcode::maximum_nesting_depth_of_the_parentheses::TEST (maximum_nesting_depth_of_the_parentheses, case4)
 
 leetcode::maximum_number_of_achievable_transfer_requests::TEST (maximum_number_of_achievable_transfer_requests, case1)
 
 leetcode::maximum_number_of_achievable_transfer_requests::TEST (maximum_number_of_achievable_transfer_requests, case2)
 
 leetcode::maximum_number_of_achievable_transfer_requests::TEST (maximum_number_of_achievable_transfer_requests, case3)
 
 leetcode::maximum_number_of_balloons::TEST (maximum_number_of_balloons, case1)
 
 leetcode::maximum_number_of_balloons::TEST (maximum_number_of_balloons, case2)
 
 leetcode::maximum_number_of_balloons::TEST (maximum_number_of_balloons, case3)
 
 leetcode::maximum_points_in_an_archery_competition::TEST (maximum_points_in_an_archery_competition, case1)
 
 leetcode::maximum_points_in_an_archery_competition::TEST (maximum_points_in_an_archery_competition, case2)
 
 leetcode::maximum_product_after_k_increments::TEST (maximum_product_after_k_increments, case1)
 
 leetcode::maximum_product_after_k_increments::TEST (maximum_product_after_k_increments, case2)
 
 leetcode::maximum_running_time_of_n_computers::TEST (maximum_running_time_of_n_computers, case1)
 
 leetcode::maximum_running_time_of_n_computers::TEST (maximum_running_time_of_n_computers, case2)
 
 leetcode::maximum_size_subarray_sum_equals_k::TEST (maximum_size_subarray_sum_equals_k, case1)
 
 leetcode::maximum_size_subarray_sum_equals_k::TEST (maximum_size_subarray_sum_equals_k, case2)
 
 leetcode::maximum_split_of_positive_even_integers::TEST (maximum_split_of_positive_even_integers, case1)
 
 leetcode::maximum_split_of_positive_even_integers::TEST (maximum_split_of_positive_even_integers, case2)
 
 leetcode::maximum_split_of_positive_even_integers::TEST (maximum_split_of_positive_even_integers, case3)
 
 leetcode::maximum_total_beauty_of_the_gardens::TEST (maximum_total_beauty_of_the_gardens, case1)
 
 leetcode::maximum_total_beauty_of_the_gardens::TEST (maximum_total_beauty_of_the_gardens, case2)
 
 leetcode::maximum_total_beauty_of_the_gardens::TEST (maximum_total_beauty_of_the_gardens, case3)
 
 leetcode::median_of_two_sorted_arrays::TEST (median_of_two_sorted_arrays, case1)
 
 leetcode::median_of_two_sorted_arrays::TEST (median_of_two_sorted_arrays, case2)
 
 leetcode::median_of_two_sorted_arrays::TEST (median_of_two_sorted_arrays, case3)
 
 leetcode::meeting_scheduler::TEST (meeting_scheduler, case1)
 
 leetcode::meeting_scheduler::TEST (meeting_scheduler, case2)
 
 leetcode::meeting_scheduler::TEST (meeting_scheduler, case3)
 
 leetcode::merge_intervals::TEST (merge_intervals, case1)
 
 leetcode::merge_intervals::TEST (merge_intervals, case2)
 
 leetcode::minimum_cost_for_tickets::TEST (minimum_cost_for_tickets, case1)
 
 leetcode::minimum_cost_for_tickets::TEST (minimum_cost_for_tickets, case2)
 
 leetcode::minimum_cost_of_buying_candies_with_discount::TEST (minimum_cost_of_buying_candies_with_discount, case1)
 
 leetcode::minimum_cost_of_buying_candies_with_discount::TEST (minimum_cost_of_buying_candies_with_discount, case2)
 
 leetcode::minimum_cost_of_buying_candies_with_discount::TEST (minimum_cost_of_buying_candies_with_discount, case3)
 
 leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::TEST (minimum_cost_to_make_at_least_one_valid_path_in_a_grid, case1)
 
 leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::TEST (minimum_cost_to_make_at_least_one_valid_path_in_a_grid, case2)
 
 leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::TEST (minimum_cost_to_make_at_least_one_valid_path_in_a_grid, case3)
 
 leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::TEST (minimum_cost_to_make_at_least_one_valid_path_in_a_grid, case4)
 
 leetcode::minimum_cost_to_make_at_least_one_valid_path_in_a_grid::TEST (minimum_cost_to_make_at_least_one_valid_path_in_a_grid, case5)
 
 leetcode::minimum_difference_between_highest_and_lowest_of_k_scores::TEST (minimum_difference_between_highest_and_lowest_of_k_scores, case1)
 
 leetcode::minimum_difference_between_highest_and_lowest_of_k_scores::TEST (minimum_difference_between_highest_and_lowest_of_k_scores, case2)
 
 leetcode::minimum_difference_in_sums_after_removal_of_elements::TEST (minimum_difference_in_sums_after_removal_of_elements, case1)
 
 leetcode::minimum_difference_in_sums_after_removal_of_elements::TEST (minimum_difference_in_sums_after_removal_of_elements, case2)
 
 leetcode::minimum_height_trees::TEST (minimum_height_trees, case1)
 
 leetcode::minimum_height_trees::TEST (minimum_height_trees, case2)
 
 leetcode::minimum_index_sum_of_two_lists::TEST (minimum_index_sum_of_two_lists, case1)
 
 leetcode::minimum_index_sum_of_two_lists::TEST (minimum_index_sum_of_two_lists, case2)
 
 leetcode::minimum_moves_to_reach_target_score::TEST (minimum_moves_to_reach_target_score, case1)
 
 leetcode::minimum_moves_to_reach_target_score::TEST (minimum_moves_to_reach_target_score, case2)
 
 leetcode::minimum_moves_to_reach_target_score::TEST (minimum_moves_to_reach_target_score, case3)
 
 leetcode::minimum_number_of_k_consecutive_bit_flips::TEST (minimum_number_of_k_consecutive_bit_flips, case1)
 
 leetcode::minimum_number_of_k_consecutive_bit_flips::TEST (minimum_number_of_k_consecutive_bit_flips, case2)
 
 leetcode::minimum_number_of_k_consecutive_bit_flips::TEST (minimum_number_of_k_consecutive_bit_flips, case3)
 
 leetcode::minimum_number_of_moves_to_make_palindrome::TEST (minimum_number_of_moves_to_make_palindrome, case1)
 
 leetcode::minimum_number_of_moves_to_make_palindrome::TEST (minimum_number_of_moves_to_make_palindrome, case2)
 
 leetcode::minimum_number_of_moves_to_make_palindrome::TEST (minimum_number_of_moves_to_make_palindrome, case3)
 
 leetcode::minimum_number_of_operations_to_convert_time::TEST (minimum_number_of_operations_to_convert_time, case1)
 
 leetcode::minimum_number_of_operations_to_convert_time::TEST (minimum_number_of_operations_to_convert_time, case2)
 
 leetcode::minimum_number_of_operations_to_convert_time::TEST (minimum_number_of_operations_to_convert_time, case3)
 
 leetcode::minimum_number_of_steps_to_make_two_strings_anagram_ii::TEST (minimum_number_of_steps_to_make_two_strings_anagram_ii, case1)
 
 leetcode::minimum_number_of_steps_to_make_two_strings_anagram_ii::TEST (minimum_number_of_steps_to_make_two_strings_anagram_ii, case2)
 
 leetcode::minimum_operations_to_halve_array_sum::TEST (minimum_operations_to_halve_array_sum, case1)
 
 leetcode::minimum_operations_to_halve_array_sum::TEST (minimum_operations_to_halve_array_sum, case2)
 
 leetcode::minimum_operations_to_make_the_array_alternating::TEST (minimum_operations_to_make_the_array_alternating, case1)
 
 leetcode::minimum_operations_to_make_the_array_alternating::TEST (minimum_operations_to_make_the_array_alternating, case2)
 
 leetcode::minimum_operations_to_make_the_array_alternating::TEST (minimum_operations_to_make_the_array_alternating, case3)
 
 leetcode::minimum_size_subarray_sum::TEST (minimum_size_subarray_sum, case1)
 
 leetcode::minimum_size_subarray_sum::TEST (minimum_size_subarray_sum, case2)
 
 leetcode::minimum_size_subarray_sum::TEST (minimum_size_subarray_sum, case3)
 
 leetcode::minimum_size_subarray_sum::TEST (minimum_size_subarray_sum, case4)
 
 leetcode::minimum_size_subarray_sum::TEST (minimum_size_subarray_sum, case5)
 
 leetcode::minimum_swaps_to_group_all_1s_together::TEST (minimum_swaps_to_group_all_1s_together, case1)
 
 leetcode::minimum_swaps_to_group_all_1s_together::TEST (minimum_swaps_to_group_all_1s_together, case2)
 
 leetcode::minimum_swaps_to_group_all_1s_together::TEST (minimum_swaps_to_group_all_1s_together, case3)
 
 leetcode::minimum_swaps_to_group_all_1s_together::TEST (minimum_swaps_to_group_all_1s_together, case4)
 
 leetcode::minimum_swaps_to_group_all_1s_together_ii::TEST (minimum_swaps_to_group_all_1s_together_ii, case1)
 
 leetcode::minimum_swaps_to_group_all_1s_together_ii::TEST (minimum_swaps_to_group_all_1s_together_ii, case2)
 
 leetcode::minimum_swaps_to_group_all_1s_together_ii::TEST (minimum_swaps_to_group_all_1s_together_ii, case3)
 
 leetcode::minimum_swaps_to_group_all_1s_together_ii::TEST (minimum_swaps_to_group_all_1s_together_ii, case4)
 
 leetcode::minimum_time_difference::TEST (minimum_time_difference, case1)
 
 leetcode::minimum_time_difference::TEST (minimum_time_difference, case2)
 
 leetcode::minimum_time_difference::TEST (minimum_time_difference, case3)
 
 leetcode::minimum_time_to_complete_trips::TEST (minimum_time_to_complete_trips, case1)
 
 leetcode::minimum_time_to_complete_trips::TEST (minimum_time_to_complete_trips, case2)
 
 leetcode::minimum_time_to_complete_trips::TEST (minimum_time_to_complete_trips, case3)
 
 leetcode::minimum_time_to_finish_the_race::TEST (minimum_time_to_finish_the_race, case1)
 
 leetcode::minimum_time_to_finish_the_race::TEST (minimum_time_to_finish_the_race, case2)
 
 leetcode::minimum_weighted_subgraph_with_the_required_paths::TEST (minimum_weighted_subgraph_with_the_required_paths, case1)
 
 leetcode::minimum_weighted_subgraph_with_the_required_paths::TEST (minimum_weighted_subgraph_with_the_required_paths, case2)
 
 leetcode::minimum_weighted_subgraph_with_the_required_paths::TEST (minimum_weighted_subgraph_with_the_required_paths, case3)
 
 leetcode::minimum_weighted_subgraph_with_the_required_paths::TEST (minimum_weighted_subgraph_with_the_required_paths, case4)
 
 leetcode::minimum_white_tiles_after_covering_with_carpets::TEST (minimum_white_tiles_after_covering_with_carpets, case1)
 
 leetcode::minimum_white_tiles_after_covering_with_carpets::TEST (minimum_white_tiles_after_covering_with_carpets, case2)
 
 leetcode::minimum_white_tiles_after_covering_with_carpets::TEST (minimum_white_tiles_after_covering_with_carpets, case3)
 
 leetcode::minimum_window_substring::TEST (minimum_window_substring, case1)
 
 leetcode::minimum_window_substring::TEST (minimum_window_substring, case2)
 
 leetcode::minimum_window_substring::TEST (minimum_window_substring, case3)
 
 leetcode::missing_element_in_sorted_array::TEST (missing_element_in_sorted_array, case1)
 
 leetcode::missing_element_in_sorted_array::TEST (missing_element_in_sorted_array, case2)
 
 leetcode::missing_element_in_sorted_array::TEST (missing_element_in_sorted_array, case3)
 
 leetcode::most_frequent_number_following_key_in_an_array::TEST (most_frequent_number_following_key_in_an_array, case1)
 
 leetcode::most_frequent_number_following_key_in_an_array::TEST (most_frequent_number_following_key_in_an_array, case2)
 
 leetcode::n_queens::TEST (n_queens, case1)
 
 leetcode::n_queens::TEST (n_queens, case2)
 
 leetcode::non_overlapping_intervals::TEST (non_overlapping_intervals, case1)
 
 leetcode::non_overlapping_intervals::TEST (non_overlapping_intervals, case2)
 
 leetcode::non_overlapping_intervals::TEST (non_overlapping_intervals, case3)
 
 leetcode::non_overlapping_intervals::TEST (non_overlapping_intervals, case4)
 
 leetcode::non_overlapping_intervals::TEST (non_overlapping_intervals, case5)
 
 leetcode::number_of_enclaves::TEST (number_of_enclaves, case1)
 
 leetcode::number_of_enclaves::TEST (number_of_enclaves, case2)
 
 leetcode::number_of_laser_beams_in_a_bank::TEST (number_of_laser_beams_in_a_bank, case1)
 
 leetcode::number_of_laser_beams_in_a_bank::TEST (number_of_laser_beams_in_a_bank, case2)
 
 leetcode::number_of_lines_to_write_string::TEST (number_of_lines_to_write_string, case1)
 
 leetcode::number_of_lines_to_write_string::TEST (number_of_lines_to_write_string, case2)
 
 leetcode::number_of_longest_increasing_subsequence::TEST (number_of_longest_increasing_subsequence, case1)
 
 leetcode::number_of_longest_increasing_subsequence::TEST (number_of_longest_increasing_subsequence, case2)
 
 leetcode::number_of_operations_to_make_network_connected::TEST (number_of_operations_to_make_network_connected, case1)
 
 leetcode::number_of_operations_to_make_network_connected::TEST (number_of_operations_to_make_network_connected, case2)
 
 leetcode::number_of_operations_to_make_network_connected::TEST (number_of_operations_to_make_network_connected, case3)
 
 leetcode::number_of_operations_to_make_network_connected::TEST (number_of_operations_to_make_network_connected, case4)
 
 leetcode::number_of_rectangles_that_can_form_the_largest_square::TEST (number_of_rectangles_that_can_form_the_largest_square, case1)
 
 leetcode::number_of_rectangles_that_can_form_the_largest_square::TEST (number_of_rectangles_that_can_form_the_largest_square, case2)
 
 leetcode::number_of_steps_to_reduce_a_number_to_zero::TEST (number_of_steps_to_reduce_a_number_to_zero, case1)
 
 leetcode::number_of_steps_to_reduce_a_number_to_zero::TEST (number_of_steps_to_reduce_a_number_to_zero, case2)
 
 leetcode::number_of_steps_to_reduce_a_number_to_zero::TEST (number_of_steps_to_reduce_a_number_to_zero, case3)
 
 leetcode::number_of_valid_words_in_a_sentence::TEST (number_of_valid_words_in_a_sentence, case1)
 
 leetcode::number_of_valid_words_in_a_sentence::TEST (number_of_valid_words_in_a_sentence, case2)
 
 leetcode::number_of_valid_words_in_a_sentence::TEST (number_of_valid_words_in_a_sentence, case3)
 
 leetcode::number_of_valid_words_in_a_sentence::TEST (number_of_valid_words_in_a_sentence, case4)
 
 leetcode::number_of_ways_to_divide_a_long_corridor::TEST (number_of_ways_to_divide_a_long_corridor, case1)
 
 leetcode::number_of_ways_to_divide_a_long_corridor::TEST (number_of_ways_to_divide_a_long_corridor, case2)
 
 leetcode::number_of_ways_to_divide_a_long_corridor::TEST (number_of_ways_to_divide_a_long_corridor, case3)
 
 leetcode::number_of_ways_to_divide_a_long_corridor::TEST (number_of_ways_to_divide_a_long_corridor, case4)
 
 leetcode::number_of_ways_to_divide_a_long_corridor::TEST (number_of_ways_to_divide_a_long_corridor, case6)
 
 leetcode::number_of_ways_to_reconstruct_a_tree::TEST (number_of_ways_to_reconstruct_a_tree, case1)
 
 leetcode::number_of_ways_to_reconstruct_a_tree::TEST (number_of_ways_to_reconstruct_a_tree, case2)
 
 leetcode::number_of_ways_to_reconstruct_a_tree::TEST (number_of_ways_to_reconstruct_a_tree, case3)
 
 leetcode::open_the_lock::TEST (open_the_lock, case1)
 
 leetcode::open_the_lock::TEST (open_the_lock, case2)
 
 leetcode::open_the_lock::TEST (open_the_lock, case3)
 
 leetcode::optimal_division::TEST (optimal_division, case1)
 
 leetcode::optimal_division::TEST (optimal_division, case2)
 
 leetcode::optimal_division::TEST (optimal_division, case3)
 
 leetcode::pacific_atlantic_waterflow::TEST (pacific_atlantic_waterflow, case1)
 
 leetcode::pacific_atlantic_waterflow::TEST (pacific_atlantic_waterflow, case2)
 
 leetcode::palindrome_partitioning::TEST (palindrome_partitioning, case1)
 
 leetcode::palindrome_partitioning::TEST (palindrome_partitioning, case2)
 
 leetcode::palindrome_partitioning_ii::TEST (palindrome_partitioning_ii, case1)
 
 leetcode::palindrome_partitioning_ii::TEST (palindrome_partitioning_ii, case2)
 
 leetcode::palindrome_partitioning_ii::TEST (palindrome_partitioning_ii, case3)
 
 leetcode::parallel_courses::TEST (parallel_courses, case1)
 
 leetcode::parallel_courses::TEST (parallel_courses, case2)
 
 leetcode::partition_equal_subset_sum::TEST (partition_equal_subset_sum, case1)
 
 leetcode::partition_equal_subset_sum::TEST (partition_equal_subset_sum, case2)
 
 leetcode::partition_labels::TEST (partition_labels, case1)
 
 leetcode::partition_labels::TEST (partition_labels, case2)
 
 leetcode::path_with_maximum_gold::TEST (path_with_maximum_gold, case1)
 
 leetcode::path_with_maximum_gold::TEST (path_with_maximum_gold, case2)
 
 leetcode::pattern_matching_lcci::TEST (pattern_matching_lcci, case1)
 
 leetcode::pattern_matching_lcci::TEST (pattern_matching_lcci, case2)
 
 leetcode::pattern_matching_lcci::TEST (pattern_matching_lcci, case3)
 
 leetcode::pattern_matching_lcci::TEST (pattern_matching_lcci, case4)
 
 leetcode::pattern_matching_lcci::TEST (pattern_matching_lcci, case5)
 
 leetcode::pattern_matching_lcci::TEST (pattern_matching_lcci, case6)
 
 leetcode::perfect_number::TEST (perfect_number, case1)
 
 leetcode::perfect_number::TEST (perfect_number, case2)
 
 leetcode::perfect_number::TEST (perfect_number, case3)
 
 leetcode::perfect_number::TEST (perfect_number, case4)
 
 leetcode::perfect_number::TEST (perfect_number, case5)
 
 leetcode::permutation_in_string::TEST (permutation_in_string, case1)
 
 leetcode::permutation_in_string::TEST (permutation_in_string, case2)
 
 leetcode::permutation_in_string::TEST (permutation_in_string, case3)
 
 leetcode::permutations::TEST (permutations, case1)
 
 leetcode::permutations::TEST (permutations, case2)
 
 leetcode::permutations::TEST (permutations, case3)
 
 leetcode::plates_between_candles::TEST (plates_between_candles, case1)
 
 leetcode::plates_between_candles::TEST (plates_between_candles, case2)
 
 leetcode::predict_the_winner::TEST (predict_the_winner, case1)
 
 leetcode::predict_the_winner::TEST (predict_the_winner, case2)
 
 leetcode::prime_number_of_set_bits_in_binary_representation::TEST (prime_number_of_set_bits_in_binary_representation, case1)
 
 leetcode::prime_number_of_set_bits_in_binary_representation::TEST (prime_number_of_set_bits_in_binary_representation, case2)
 
 leetcode::process_restricted_friend_requests::TEST (process_restricted_friend_requests, case1)
 
 leetcode::process_restricted_friend_requests::TEST (process_restricted_friend_requests, case2)
 
 leetcode::product_of_array_except_self::TEST (product_of_array_except_self, case1)
 
 leetcode::product_of_array_except_self::TEST (product_of_array_except_self, case2)
 
 leetcode::product_of_two_run_length_encoded_arrays::TEST (product_of_two_run_length_encoded_arrays, case1)
 
 leetcode::product_of_two_run_length_encoded_arrays::TEST (product_of_two_run_length_encoded_arrays, case2)
 
 leetcode::projection_area_of_3d_shapes::TEST (projection_area_of_3d_shapes, case1)
 
 leetcode::projection_area_of_3d_shapes::TEST (projection_area_of_3d_shapes, case2)
 
 leetcode::projection_area_of_3d_shapes::TEST (projection_area_of_3d_shapes, case3)
 
 leetcode::push_dominoes::TEST (push_dominoes, case1)
 
 leetcode::push_dominoes::TEST (push_dominoes, case2)
 
 leetcode::reaching_points::TEST (reaching_points, case1)
 
 leetcode::reaching_points::TEST (reaching_points, case2)
 
 leetcode::reaching_points::TEST (reaching_points, case3)
 
 leetcode::rearrange_array_elements_by_sign::TEST (rearrange_array_elements_by_sign, case1)
 
 leetcode::rearrange_array_elements_by_sign::TEST (rearrange_array_elements_by_sign, case2)
 
 leetcode::regular_expression_matching::TEST (regular_expression_matching, case1)
 
 leetcode::regular_expression_matching::TEST (regular_expression_matching, case2)
 
 leetcode::regular_expression_matching::TEST (regular_expression_matching, case3)
 
 leetcode::regular_expression_matching::TEST (regular_expression_matching, case4)
 
 leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::TEST (remove_colored_pieces_if_both_neighbors_are_the_same_color, case1)
 
 leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::TEST (remove_colored_pieces_if_both_neighbors_are_the_same_color, case2)
 
 leetcode::remove_colored_pieces_if_both_neighbors_are_the_same_color::TEST (remove_colored_pieces_if_both_neighbors_are_the_same_color, case3)
 
 leetcode::remove_invalid_parentheses::TEST (remove_invalid_parentheses, case1)
 
 leetcode::remove_invalid_parentheses::TEST (remove_invalid_parentheses, case2)
 
 leetcode::remove_invalid_parentheses::TEST (remove_invalid_parentheses, case3)
 
 leetcode::remove_invalid_parentheses::TEST (remove_invalid_parentheses, case4)
 
 leetcode::remove_invalid_parentheses::TEST (remove_invalid_parentheses, case5)
 
 leetcode::remove_palindromic_subsequences::TEST (remove_palindromic_subsequences, case1)
 
 leetcode::remove_palindromic_subsequences::TEST (remove_palindromic_subsequences, case2)
 
 leetcode::remove_palindromic_subsequences::TEST (remove_palindromic_subsequences, case3)
 
 leetcode::removing_minimum_number_of_magic_beans::TEST (removing_minimum_number_of_magic_beans, case1)
 
 leetcode::removing_minimum_number_of_magic_beans::TEST (removing_minimum_number_of_magic_beans, case2)
 
 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case1)
 
 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case2)
 
 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case3)
 
 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case4)
 
 leetcode::replace_non_coprime_numbers_in_array::TEST (replace_non_coprime_numbers_in_array, case1)
 
 leetcode::replace_non_coprime_numbers_in_array::TEST (replace_non_coprime_numbers_in_array, case2)
 
 leetcode::reverse_only_letters::TEST (reverse_only_letters, case1)
 
 leetcode::reverse_only_letters::TEST (reverse_only_letters, case2)
 
 leetcode::reverse_only_letters::TEST (reverse_only_letters, case3)
 
 leetcode::reverse_prefix_of_word::TEST (reverse_prefix_of_word, case1)
 
 leetcode::reverse_prefix_of_word::TEST (reverse_prefix_of_word, case2)
 
 leetcode::reverse_prefix_of_word::TEST (reverse_prefix_of_word, case3)
 
 leetcode::rotate_string::TEST (rotate_string, case1)
 
 leetcode::rotate_string::TEST (rotate_string, case2)
 
 leetcode::search_a_2d_matrix_ii::TEST (search_a_2d_matrix_ii, case1)
 
 leetcode::search_a_2d_matrix_ii::TEST (search_a_2d_matrix_ii, case3)
 
 leetcode::second_minimum_time_to_reach_destination::TEST (second_minimum_time_to_reach_destination, case1)
 
 leetcode::second_minimum_time_to_reach_destination::TEST (second_minimum_time_to_reach_destination, case2)
 
 leetcode::self_dividing_numbers::TEST (self_dividing_numbers, case1)
 
 leetcode::self_dividing_numbers::TEST (self_dividing_numbers, case2)
 
 leetcode::serialize_and_deserialize_binary_tree::TEST (serialize_and_deserialize_binary_tree, case1)
 
 leetcode::serialize_and_deserialize_binary_tree::TEST (serialize_and_deserialize_binary_tree, case2)
 
 leetcode::serialize_and_deserialize_binary_tree::TEST (serialize_and_deserialize_binary_tree, case3)
 
 leetcode::serialize_and_deserialize_binary_tree::TEST (serialize_and_deserialize_binary_tree, case4)
 
 leetcode::serialize_and_deserialize_binary_tree::TEST (serialize_and_deserialize_binary_tree, case5)
 
 leetcode::shortest_distance_to_target_color::TEST (shortest_distance_to_target_color, case1)
 
 leetcode::shortest_distance_to_target_color::TEST (shortest_distance_to_target_color, case2)
 
 leetcode::shortest_path_to_get_all_keys::TEST (shortest_path_to_get_all_keys, case1)
 
 leetcode::shortest_path_to_get_all_keys::TEST (shortest_path_to_get_all_keys, case2)
 
 leetcode::shortest_path_to_get_all_keys::TEST (shortest_path_to_get_all_keys, case3)
 
 leetcode::shortest_path_to_get_all_keys::TEST (shortest_path_to_get_all_keys, case4)
 
 leetcode::shortest_path_to_get_all_keys::TEST (shortest_path_to_get_all_keys, case5)
 
 leetcode::simplified_fractions::TEST (simplified_fractions, case1)
 
 leetcode::simplified_fractions::TEST (simplified_fractions, case2)
 
 leetcode::simplified_fractions::TEST (simplified_fractions, case3)
 
 leetcode::simplify_path::TEST (simplify_path, case1)
 
 leetcode::simplify_path::TEST (simplify_path, case2)
 
 leetcode::simplify_path::TEST (simplify_path, case3)
 
 leetcode::simplify_path::TEST (simplify_path, case4)
 
 leetcode::simplify_path::TEST (simplify_path, case5)
 
 leetcode::single_element_in_a_sorted_array::TEST (single_element_in_a_sorted_array, case1)
 
 leetcode::single_element_in_a_sorted_array::TEST (single_element_in_a_sorted_array, case2)
 
 leetcode::single_number_iii::TEST (single_number_iii, case1)
 
 leetcode::single_number_iii::TEST (single_number_iii, case2)
 
 leetcode::single_number_iii::TEST (single_number_iii, case3)
 
 leetcode::sliding_window_maximum::TEST (sliding_window_maximum, case1)
 
 leetcode::sliding_window_maximum::TEST (sliding_window_maximum, case2)
 
 leetcode::slowest_key::TEST (slowest_key, case1)
 
 leetcode::slowest_key::TEST (slowest_key, case2)
 
 leetcode::smallest_rotation_with_highest_score::TEST (smallest_rotation_with_highest_score, case1)
 
 leetcode::smallest_rotation_with_highest_score::TEST (smallest_rotation_with_highest_score, case2)
 
 leetcode::smallest_value_of_the_rearranged_number::TEST (smallest_value_of_the_rearranged_number, case1)
 
 leetcode::smallest_value_of_the_rearranged_number::TEST (smallest_value_of_the_rearranged_number, case2)
 
 leetcode::smallest_value_of_the_rearranged_number::TEST (smallest_value_of_the_rearranged_number, case3)
 
 leetcode::sort_colors::TEST (sort_colors, case1)
 
 leetcode::sort_colors::TEST (sort_colors, case2)
 
 leetcode::sort_the_jumbled_numbers::TEST (sort_the_jumbled_numbers, case1)
 
 leetcode::sort_the_jumbled_numbers::TEST (sort_the_jumbled_numbers, case2)
 
 leetcode::spiral_matrix_ii::TEST (spiral_matrix_ii, case1)
 
 leetcode::spiral_matrix_ii::TEST (spiral_matrix_ii, case2)
 
 leetcode::split_array_largest_sum::TEST (split_array_largest_sum, case1)
 
 leetcode::split_array_largest_sum::TEST (split_array_largest_sum, case2)
 
 leetcode::split_array_largest_sum::TEST (split_array_largest_sum, case3)
 
 leetcode::stone_game_ix::TEST (stone_game_ix, case1)
 
 leetcode::stone_game_ix::TEST (stone_game_ix, case2)
 
 leetcode::stone_game_ix::TEST (stone_game_ix, case3)
 
 leetcode::stone_game_ix::TEST (stone_game_ix, case4)
 
 leetcode::stone_game_ix::TEST (stone_game_ix, case5)
 
 leetcode::stone_game_ix::TEST (stone_game_ix, case6)
 
 leetcode::additive_number::TEST (str2ui, case1)
 
 leetcode::additive_number::TEST (str2ui, case2)
 
 leetcode::additive_number::TEST (str2ui, case3)
 
 leetcode::additive_number::TEST (str2ui, case4)
 
 leetcode::strong_password_checker::TEST (strong_password_checker, case1)
 
 leetcode::strong_password_checker::TEST (strong_password_checker, case2)
 
 leetcode::strong_password_checker::TEST (strong_password_checker, case3)
 
 leetcode::strong_password_checker::TEST (strong_password_checker, case4)
 
 leetcode::strong_password_checker::TEST (strong_password_checker, case5)
 
 leetcode::subarray_product_less_than_k::TEST (subarray_product_less_than_k, case1)
 
 leetcode::subarray_product_less_than_k::TEST (subarray_product_less_than_k, case2)
 
 leetcode::subarray_sum_equals_k::TEST (subarray_sum_equals_k, case1)
 
 leetcode::subarray_sum_equals_k::TEST (subarray_sum_equals_k, case2)
 
 leetcode::subarray_sum_equals_k::TEST (subarray_sum_equals_k, case3)
 
 leetcode::subarray_sum_equals_k::TEST (subarray_sum_equals_k, case4)
 
 leetcode::subarray_sum_equals_k::TEST (subarray_sum_equals_k, case5)
 
 leetcode::sudoku_solver::TEST (sudoku_solver, case1)
 
 leetcode::sum_of_scores_of_built_strings::TEST (sum_of_scores_of_built_strings, case1)
 
 leetcode::sum_of_scores_of_built_strings::TEST (sum_of_scores_of_built_strings, case2)
 
 leetcode::sum_of_subarray_ranges::TEST (sum_of_subarray_ranges, case1)
 
 leetcode::sum_of_subarray_ranges::TEST (sum_of_subarray_ranges, case2)
 
 leetcode::sum_of_subarray_ranges::TEST (sum_of_subarray_ranges, case3)
 
 leetcode::sum_of_unique_elements::TEST (sum_of_unique_elements, case1)
 
 leetcode::sum_of_unique_elements::TEST (sum_of_unique_elements, case2)
 
 leetcode::sum_of_unique_elements::TEST (sum_of_unique_elements, case3)
 
 leetcode::swap_adjacent_in_lr_string::TEST (swap_adjacent_in_lr_string, case1)
 
 leetcode::swap_adjacent_in_lr_string::TEST (swap_adjacent_in_lr_string, case2)
 
 leetcode::swap_adjacent_in_lr_string::TEST (swap_adjacent_in_lr_string, case3)
 
 leetcode::task_scheduler::TEST (task_scheduler, case1)
 
 leetcode::task_scheduler::TEST (task_scheduler, case2)
 
 leetcode::task_scheduler::TEST (task_scheduler, case3)
 
 leetcode::task_scheduler::TEST (task_scheduler, case4)
 
 leetcode::task_scheduler::TEST (task_scheduler, case5)
 
 leetcode::the_number_of_good_subsets::TEST (the_number_of_good_subsets, case1)
 
 leetcode::the_number_of_good_subsets::TEST (the_number_of_good_subsets, case2)
 
 leetcode::the_time_when_the_network_becomes_idle::TEST (the_time_when_the_network_becomes_idle, case1)
 
 leetcode::the_time_when_the_network_becomes_idle::TEST (the_time_when_the_network_becomes_idle, case2)
 
 leetcode::trapping_rain_water::TEST (trapping_rain_water, case1)
 
 leetcode::trapping_rain_water::TEST (trapping_rain_water, case2)
 
 leetcode::triangle::TEST (triangle, case1)
 
 leetcode::triangle::TEST (triangle, case2)
 
 leetcode::UhWRSj::TEST (UhWRSj, case1)
 
 leetcode::UhWRSj::TEST (UhWRSj, case2)
 
 leetcode::UhWRSj::TEST (UhWRSj, case3)
 
 leetcode::UhWRSj::TEST (UhWRSj, case4)
 
 leetcode::UhWRSj::TEST (UhWRSj, case5)
 
 leetcode::unique_paths::TEST (unique_paths, case1)
 
 leetcode::unique_paths::TEST (unique_paths, case2)
 
 leetcode::utf_8_validation::TEST (utf_8_validation, case1)
 
 leetcode::utf_8_validation::TEST (utf_8_validation, case2)
 
 leetcode::utf_8_validation::TEST (utf_8_validation, case3)
 
 leetcode::walls_and_gates::TEST (walls_and_gates, case1)
 
 leetcode::walls_and_gates::TEST (walls_and_gates, case2)
 
 leetcode::walls_and_gates::TEST (walls_and_gates, case3)
 
 leetcode::where_will_the_ball_fall::TEST (where_will_the_ball_fall, case1)
 
 leetcode::where_will_the_ball_fall::TEST (where_will_the_ball_fall, case2)
 
 leetcode::where_will_the_ball_fall::TEST (where_will_the_ball_fall, case3)
 
 leetcode::word_break::TEST (word_break, case1)
 
 leetcode::word_break::TEST (word_break, case2)
 
 leetcode::word_break::TEST (word_break, case3)
 
 leetcode::zigzag_conversion::TEST (zigzag_conversion, case1)
 
 leetcode::zigzag_conversion::TEST (zigzag_conversion, case2)
 
 leetcode::zigzag_conversion::TEST (zigzag_conversion, case3)