Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aylei/leetcode-rust
/ functions
Functions
608 in github.com/aylei/leetcode-rust
⨍
Functions
608
◇
Types & classes
271
Method
max_area
(height: Vec<i32>)
src/solution/s0011_container_with_most_water.rs:34
Method
max_coins
(nums: Vec<i32>)
src/solution/s0312_burst_balloons.rs:48
Method
max_depth
(root: Option<Rc<RefCell<TreeNode>>>)
src/solution/s0104_maximum_depth_of_binary_tree.rs:35
Method
max_path_sum
(root: Option<Rc<RefCell<TreeNode>>>)
src/solution/s0124_binary_tree_maximum_path_sum.rs:60
Method
max_points
(points: Vec<Point>)
src/solution/s0149_max_points_on_a_line.rs:83
Method
max_product
(nums: Vec<i32>)
src/solution/s0152_maximum_product_subarray.rs:44
Method
max_profit
(prices: Vec<i32>)
src/solution/s0122_best_time_to_buy_and_sell_stock_ii.rs:45
Method
max_profit
(prices: Vec<i32>)
src/solution/s0309_best_time_to_buy_and_sell_stock_with_cooldown.rs:35
Method
max_profit
(k: i32, prices: Vec<i32>)
src/solution/s0188_best_time_to_buy_and_sell_stock_iv.rs:72
Method
max_profit
(prices: Vec<i32>)
src/solution/s0123_best_time_to_buy_and_sell_stock_iii.rs:75
Method
max_profit
(prices: Vec<i32>)
src/solution/s0121_best_time_to_buy_and_sell_stock.rs:36
Method
max_sliding_window
(nums: Vec<i32>, k: i32)
src/solution/s0239_sliding_window_maximum.rs:38
Method
max_sub_array
(nums: Vec<i32>)
src/solution/s0053_maximum_subarray.rs:27
Method
max_subrange
(coins: &Vec<i32>, start: usize, end: usize, memo: &mut Vec<Vec<i32>>)
src/solution/s0312_burst_balloons.rs:68
Method
maximal_rectangle
(matrix: Vec<Vec<char>>)
src/solution/s0085_maximal_rectangle.rs:28
Method
maximal_square
(matrix: Vec<Vec<char>>)
src/solution/s0221_maximal_square.rs:40
Method
maximum_gap
(nums: Vec<i32>)
src/solution/s0164_maximum_gap.rs:45
Method
merge
(intervals: Vec<Interval>)
src/solution/s0056_merge_intervals.rs:43
Method
merge
( mut l1: Option<Box<ListNode>>, mut l2: Option<Box<ListNode>>, )
src/solution/s0148_sort_list.rs:70
Method
merge
(nums1: &mut Vec<i32>, m: i32, nums2: &mut Vec<i32>, n: i32)
src/solution/s0088_merge_sorted_array.rs:32
Method
merge_k_lists
(lists: Vec<Option<Box<ListNode>>>)
src/solution/s0023_merge_k_sorted_lists.rs:51
Method
merge_sort
(mut head: Option<Box<ListNode>>, len: i32)
src/solution/s0148_sort_list.rs:54
Method
merge_two_lists
( l1: Option<Box<ListNode>>, l2: Option<Box<ListNode>>, )
src/solution/s0021_merge_two_sorted_lists.rs:23
Method
min
(i: i32, j: i32)
src/solution/s0011_container_with_most_water.rs:60
Method
min_cut
(s: String)
src/solution/s0132_palindrome_partitioning_ii.rs:38
Method
min_depth
(root: Option<Rc<RefCell<TreeNode>>>)
src/solution/s0111_minimum_depth_of_binary_tree.rs:36
Method
min_distance
(word1: String, word2: String)
src/solution/s0072_edit_distance.rs:47
Method
min_path_sum
(grid: Vec<Vec<i32>>)
src/solution/s0064_minimum_path_sum.rs:30
Method
min_sub_array_len
(s: i32, nums: Vec<i32>)
src/solution/s0209_minimum_size_subarray_sum.rs:26
Method
min_window
(s: String, t: String)
src/solution/s0076_minimum_window_substring.rs:29
Method
minimum_total
(triangle: Vec<Vec<i32>>)
src/solution/s0120_triangle.rs:32
Method
missing_number
(nums: Vec<i32>)
src/solution/s0268_missing_number.rs:31
Method
move_zeroes
(nums: &mut Vec<i32>)
src/solution/s0283_move_zeroes.rs:27
Method
multiply
(num1: String, num2: String)
src/solution/s0043_multiply_strings.rs:40
Method
my_atoi
(input: String)
src/solution/s0008_string_to_integer_atoi.rs:70
Method
my_pow
(x: f64, n: i32)
src/solution/s0050_powx_n.rs:44
Method
my_sqrt
(x: i32)
src/solution/s0069_sqrtx.rs:38
Method
new
(nums: Vec<i32>)
src/solution/s0307_range_sum_query_mutable.rs:54
Method
new
initialize your data structure here. */
src/solution/s0295_find_median_from_data_stream.rs:78
Method
new
(key: i32, val: i32)
src/solution/s0146_lru_cache.rs:57
Method
new
(nums: Vec<i32>)
src/solution/s0303_range_sum_query_immutable.rs:39
Method
new
Initialize your data structure here. */
src/solution/s0208_implement_trie_prefix_tree.rs:46
Method
new
(start: i32, end: i32)
src/solution/s0056_merge_intervals.rs:38
Method
new
(start: i32, end: i32)
src/solution/s0057_insert_interval.rs:39
Method
new
Initialize your data structure here. */
src/solution/s0225_implement_stack_using_queues.rs:52
Method
new
Assumes that there is no same point
src/solution/s0149_max_points_on_a_line.rs:68
Method
new
(matrix: Vec<Vec<i32>>)
src/solution/s0304_range_sum_query_2d_immutable.rs:55
Method
new
()
src/solution/s0211_add_and_search_word_data_structure_design.rs:48
Method
new
initialize your data structure here. */
src/solution/s0155_min_stack.rs:60
Method
new
(expect: i32, count: i32)
src/solution/s0030_substring_with_concatenation_of_all_words.rs:38
Method
new
Initialize your data structure here. */
src/solution/s0232_implement_queue_using_stacks.rs:51
Method
new
(root: Option<Rc<RefCell<TreeNode>>>)
src/solution/s0173_binary_search_tree_iterator.rs:62
Method
new
(x: i32, y: i32)
src/util/point.rs:9
Method
new
(val: i32)
src/util/tree.rs:13
Method
new
(val: i32)
src/util/linked_list.rs:9
Method
next
( mut lists: Vec<Option<Box<ListNode>>>, heap: &mut BinaryHeap<Node>, )
src/solution/s0023_merge_k_sorted_lists.rs:60
Method
next
(n: i32)
src/solution/s0202_happy_number.rs:46
Method
next_permutation
(nums: &mut Vec<i32>)
src/solution/s0031_next_permutation.rs:25
Method
next_unique
(nums: &[i32], idx: usize, forward: bool)
src/solution/s0015_3sum.rs:78
Method
nth_super_ugly_number
(n: i32, primes: Vec<i32>)
src/solution/s0313_super_ugly_number.rs:55
Method
nth_ugly_number
(n: i32)
src/solution/s0264_ugly_number_ii.rs:30
Method
num_decodings
(s: String)
src/solution/s0091_decode_ways.rs:39
Method
num_islands
(grid: Vec<Vec<char>>)
src/solution/s0200_number_of_islands.rs:39
Method
num_squares
(n: i32)
src/solution/s0279_perfect_squares.rs:30
Method
num_trees
(n: i32)
src/solution/s0096_unique_binary_search_trees.rs:30
Method
number_to_words
(num: i32)
src/solution/s0273_integer_to_english_words.rs:48
Method
pair
(open: char, close: char)
src/solution/s0020_valid_parentheses.rs:77
Method
pancake_oper
(a: &mut Vec<i32>, index: usize, res: &mut Vec<i32>)
src/solution/s0969_pancake_sorting.rs:87
Method
pancake_sort
(a: Vec<i32>)
src/solution/s0969_pancake_sorting.rs:53
Method
partial_cmp
(&self, other: &Self)
src/solution/s0023_merge_k_sorted_lists.rs:45
Method
partial_cmp
(&self, other: &Invert)
src/solution/s0295_find_median_from_data_stream.rs:61
Method
partial_cmp
(&self, other: &Invert)
src/solution/s0313_super_ugly_number.rs:49
Method
partial_factorial
(start: u64, mut end: u64)
src/solution/s0062_unique_paths.rs:52
Method
partition
(s: String)
src/solution/s0131_palindrome_partitioning.rs:43
Method
partition
(head: Option<Box<ListNode>>, x: i32)
src/solution/s0086_partition_list.rs:25
Method
path_sum
(root: Option<Rc<RefCell<TreeNode>>>, sum: i32)
src/solution/s0113_path_sum_ii.rs:44
Method
permute
(mut nums: Vec<i32>)
src/solution/s0047_permutations_ii.rs:33
Method
permute
(nums: Vec<i32>)
src/solution/s0046_permutations.rs:30
Method
permute_unique
(nums: Vec<i32>)
src/solution/s0047_permutations_ii.rs:27
Method
plus_one
(digits: Vec<i32>)
src/solution/s0066_plus_one.rs:35
Method
pop
Removes the element on top of the stack and returns that element. */
src/solution/s0225_implement_stack_using_queues.rs:75
Method
postorder
(root: Option<&Rc<RefCell<TreeNode>>>, max: &mut i32)
src/solution/s0124_binary_tree_maximum_path_sum.rs:66
Method
postorder_traversal
(root: Option<Rc<RefCell<TreeNode>>>)
src/solution/s0145_binary_tree_postorder_traversal.rs:33
Method
prefixes_div_by5
(a: Vec<i32>)
src/solution/s1018_binary_prefix_divisible_by_5.rs:56
Method
preorder_traversal
(root: Option<Rc<RefCell<TreeNode>>>)
src/solution/s0144_binary_tree_preorder_traversal.rs:33
Method
preorder_traverse
( root: Option<&Rc<RefCell<TreeNode>>>, formers: &mut Vec<(i32, i32)>, )
src/solution/s0098_validate_binary_search_tree.rs:56
Method
product_except_self
(nums: Vec<i32>)
src/solution/s0238_product_of_array_except_self.rs:33
Method
question_query
(title_slug: &str)
src/fetcher.rs:134
Method
range_bitwise_and
(m: i32, n: i32)
src/solution/s0201_bitwise_and_of_numbers_range.rs:28
Method
record
(vec: &mut Vec<String>, start: i32, end: i32)
src/solution/s0228_summary_ranges.rs:52
Method
recover_helper
( root: Option<&Rc<RefCell<TreeNode>>>, )
src/solution/s0099_recover_binary_search_tree.rs:94
Method
recover_tree
(root: &mut Option<Rc<RefCell<TreeNode>>>)
src/solution/s0099_recover_binary_search_tree.rs:90
Method
remove_duplicates
(nums: &mut Vec<i32>)
src/solution/s0026_remove_duplicates_from_sorted_array.rs:54
Method
remove_duplicates
(nums: &mut Vec<i32>)
src/solution/s0080_remove_duplicates_from_sorted_array_ii.rs:55
Method
remove_element
(nums: &mut Vec<i32>, val: i32)
src/solution/s0027_remove_element.rs:58
Method
remove_elements
(mut head: Option<Box<ListNode>>, val: i32)
src/solution/s0203_remove_linked_list_elements.rs:23
Method
remove_invalid_parentheses
(s: String)
src/solution/s0301_remove_invalid_parentheses.rs:40
Method
remove_nth_from_end
(head: Option<Box<ListNode>>, n: i32)
src/solution/s0019_remove_nth_node_from_end_of_list.rs:34
Method
reorder_list
(head: &mut Option<Box<ListNode>>)
src/solution/s0143_reorder_list.rs:37
Method
restore_ip_addresses
(s: String)
src/solution/s0093_restore_ip_addresses.rs:22
← previous
next →
201–300 of 608, ranked by callers