MCPcopy Create free account

hub / github.com/Ainevsia/Leetcode-Rust / functions

Functions1,163 in github.com/Ainevsia/Leetcode-Rust

Methodlargest_rectangle_area
i cannot write such brain-consuming code!
84. Largest Rectangle in Histogram/src/main.rs:9
Methodlargest_rectangle_area
(v: Vec<i32>)
cn/739. 每日温度/src/main.rs:8
Methodlargest_rectangle_area1
(mut v: Vec<i32>)
cn/739. 每日温度/src/main.rs:36
Methodlargest_rectangle_area2
(mut v: Vec<i32>)
cn/739. 每日温度/src/main.rs:56
MethodlastStoneWeight
1046. Last Stone Weight/Solution.cpp:16
Methodlast_stone_weight
(stones: Vec<i32>)
1046. Last Stone Weight/src/main.rs:8
Functionleet
()
42. Trapping Rain Water/src/main.rs:58
Functionleetcode
()
29. Divide Two Integers/src/main.rs:65
Functionleetcode
()
65. Valid Number/src/main.rs:138
Functionleetcode
()
34. Find First and Last Position of Element in Sorted Array/src/main.rs:70
Functionleetcode
()
47. Permutations II/src/main.rs:84
Methodlength_longest_path
(input: String)
cn/388. 文件的最长绝对路径/src/main.rs:10
Methodlength_of_last_word
(s: String)
58. Length of Last Word/src/main.rs:8
Methodlength_of_longest_substring
(s: String)
3. Longest Substring Without Repeating Characters/src/main.rs:75
Methodlength_of_longest_substring_bad
(s: String)
3. Longest Substring Without Repeating Characters/src/main.rs:12
Methodlength_of_longest_substring_ori
(s: String)
3. Longest Substring Without Repeating Characters/src/main.rs:36
Methodletter_case_permutation
(s: String)
784. Letter Case Permutation/src/main.rs:8
Methodletter_combinations
(digits: String)
17. Letter Combinations of a Phone Number/src/main.rs:8
Methodletter_combinations_
(digits: String)
17. Letter Combinations of a Phone Number/src/main.rs:46
MethodlevelOrder
102. Binary Tree Level Order Traversal/Solution.cpp:22
Methodlexical_order
(n: i32)
cn/386. 字典序排数/src/main.rs:9
MethodlongestPrefix
Weekly Contest 181/1392. Longest Happy Prefix/Solution.cpp:25
MethodlongestPrefix
i am too young to learn the power of stl
Weekly Contest 181/1392. Longest Happy Prefix/Solution.cpp:48
Methodlongest_common_prefix
(strs: Vec<String>)
14. Longest Common Prefix/src/main.rs:9
Methodlongest_dup_substring
(s: String)
1044. Longest Duplicate Substring/src/main.rs:17
Methodlongest_ones
this is classic two pointers or substring problem !
1004. Max Consecutive Ones III/src/main.rs:9
Methodlongest_palindrome
(s: String)
5. Longest Palindromic Substring/src/main.rs:18
Methodlongest_substring
INSIGHT: any char that appears less than k times wont be in the final array, which can be used to split the string. Substrings has well property. [Rec
Sliding Window/395. Longest Substring with At Least K Repeating Characters/src/main.rs:42
Methodlongest_substring_re
(s: &[char], k: i32)
Sliding Window/395. Longest Substring with At Least K Repeating Characters/src/main.rs:47
Methodlongest_substring_template
(s: String, k: i32)
Sliding Window/395. Longest Substring with At Least K Repeating Characters/src/main.rs:8
Methodlongest_valid_parentheses
(s: String)
32. Longest Valid Parentheses/src/main.rs:45
Methodlongest_valid_parentheses_my
(s: String)
32. Longest Valid Parentheses/src/main.rs:8
Methodlongest_valid_substring
一维 dp dp[i] 表示以第 i 个字符结尾的最长合法子字符串的长度 如果不禁止,将 dp[i] 设置为 dp[i-1]+1 如果禁止,将 dp[i] 设置为 最大的不禁止字符串长度 (优化)
704. 二分查找/src/main.rs:769
MethodluckyNumbers
Weekly Contest 180/1380. Lucky Numbers in a Matrix/Solution.cpp:14
Functionmain
()
51. N-Queens/src/main.rs:1
Functionmain
95. Unique Binary Search Trees II/Solution.cpp:64
Functionmain
()
30. Substring with Concatenation of All Words/src/main.rs:7
Functionmain
()
213. House Robber II/src/main.rs:1
Functionmain
()
82. Remove Duplicates from Sorted List II/src/main.rs:1
Functionmain
49. Group Anagrams/Solution.cpp:65
Functionmain
()
49. Group Anagrams/src/main.rs:1
Functionmain
()
2. Add Two Numbers/src/main.rs:118
Functionmain
()
6. ZigZag Conversion/src/main.rs:1
Functionmain
()
Merge Intervals/57. Insert Interval/src/main.rs:1
Functionmain
()
Merge Intervals/56. Merge Intervals/src/main.rs:1
Functionmain
()
Merge Intervals/986. Interval List Intersections/src/main.rs:1
Functionmain
115. Distinct Subsequences/Solution.cpp:29
Functionmain
()
220. Contains Duplicate III/src/main.rs:1
Functionmain
217. Contains Duplicate/Solution.cpp:29
Functionmain
()
217. Contains Duplicate/src/main.rs:1
Functionmain
()
42. Trapping Rain Water/src/main.rs:1
Functionmain
73. Set Matrix Zeroes/Solution.cpp:82
Functionmain
()
704. 二分查找/src/main.rs:2
Functionmain
()
92. Reverse Linked List II/src/main.rs:1
Functionmain
()
29. Divide Two Integers/src/main.rs:1
Functionmain
93. Restore IP Addresses/Solution.cpp:44
Functionmain
()
58. Length of Last Word/src/main.rs:1
Functionmain
()
88. Merge Sorted Array/src/main.rs:1
Functionmain
()
14. Longest Common Prefix/src/main.rs:1
Functionmain
1046. Last Stone Weight/Solution.cpp:30
Functionmain
()
1046. Last Stone Weight/src/main.rs:1
Functionmain
97. Interleaving String/Solution.cpp:34
Functionmain
()
16. 3Sum Closest/src/main.rs:1
Functionmain
()
62. Unique Paths/src/main.rs:1
Functionmain
()
39. Combination Sum/src/main.rs:1
Functionmain
()
Cyclic Sort/287. Find the Duplicate Number/src/main.rs:1
Functionmain
()
Cyclic Sort/268. Missing Number/src/main.rs:1
Functionmain
()
63. Unique Paths II/src/main.rs:1
Functionmain
343. Integer Break/Solution.cpp:40
Functionmain
105. Construct Binary Tree from Preorder and Inorder Traversal/Solution.cpp:47
Functionmain
()
Weekly Contest 174/5328. The K Weakest Rows in a Matrix/src/main.rs:1
Functionmain
()
782. Transform to Chessboard/src/main.rs:1
Functionmain
()
23. Merge k Sorted Lists/src/main.rs:1
Functionmain
()
23. Merge k Sorted Lists/src/main_bruteforce.rs:1
Functionmain
()
65. Valid Number/src/main.rs:3
Functionmain
()
30-Day LeetCoding Challenge/Perform String Shifts/src/main.rs:1
Functionmain
()
30-Day LeetCoding Challenge/counting_elements/src/main.rs:1
Functionmain
()
66. Plus One/src/main.rs:1
Functionmain
109. Convert Sorted List to Binary Search Tree/Solution.cpp:57
Functionmain
()
7. Reverse Integer/src/main.rs:1
Functionmain
()
61. Rotate List/src/main.rs:1
Functionmain
()
125. Valid Palindrome/src/main.rs:1
Functionmain
102. Binary Tree Level Order Traversal/Solution.cpp:43
Functionmain
()
54. Spiral Matrix/src/main.rs:1
Functionmain
200. Number of Islands/Solution.cpp:55
Functionmain
()
200. Number of Islands/src/main.rs:1
Functionmain
()
316. Remove Duplicate Letters/src/main.rs:1
Functionmain
()
72. Edit Distance/src/main.rs:1
Functionmain
()
136. Single Number/src/main.rs:1
Functionmain
()
37. Sudoku Solver/src/main.rs:1
Functionmain
()
52. N-Queens II/src/main.rs:1
Functionmain
()
1254. Number of Closed Islands/src/main.rs:1
Functionmain
()
12. Integer to Roman/src/main.rs:1
Functionmain
()
1004. Max Consecutive Ones III/src/main.rs:1
Functionmain
()
26. Remove Duplicates from Sorted Array/src/main.rs:1
Functionmain
()
33. Search in Rotated Sorted Array/src/main.rs:1
Functionmain
()
32. Longest Valid Parentheses/src/main.rs:1
Functionmain
()
35. Search Insert Position/src/main.rs:1
Functionmain
Two Pointers/844. Backspace String Compare/Solution.cpp:32
Functionmain
()
Two Pointers/844. Backspace String Compare/src/main.rs:1
← previousnext →601–700 of 1,163, ranked by callers