Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ainevsia/Leetcode-Rust
/ functions
Functions
1,163 in github.com/Ainevsia/Leetcode-Rust
⨍
Functions
1,163
◇
Types & classes
350
↓ 1 callers
Method
median
(&self)
Two Heaps/480. Sliding Window Median/src/main.rs:115
↓ 1 callers
Method
next
(&mut self)
1669. Minimum Cost to Cut a Stick/src/main.rs:181
↓ 1 callers
Method
numDistinct
string dp
115. Distinct Subsequences/Solution.cpp:16
↓ 1 callers
Method
numTimesAllBlue
do not try to simulate in algorithm contest find the inner regulation and abstraction
Weekly Contest 179/1375. Bulb Switcher III/Solution.cpp:16
↓ 1 callers
Method
numTrees_cantalan
cantalan tree http://www-math.mit.edu/~rstan/ec/catalan.pdf
96. Unique Binary Search Trees/Solution.cpp:56
↓ 1 callers
Method
o2i
(&mut self)
704. 二分查找/src/main.rs:136
↓ 1 callers
Method
p
(&self)
32. Longest Valid Parentheses/src/main.rs:86
↓ 1 callers
Method
partial_cmp
(&self, other: &Self)
855. Count Unique Characters of All Substrings of a Given String/src/lib.rs:30
↓ 1 callers
Method
partition
86. Partition List/Solution.cpp:17
↓ 1 callers
Method
partition
(mut head: Option<Box<ListNode>>, x: i32)
86. Partition List/src/main.rs:41
↓ 1 callers
Method
pop
(&mut self)
155. Min Stack/src/main.rs:31
↓ 1 callers
Method
productExceptSelf
238. Product of Array Except Self/Solution.cpp:16
↓ 1 callers
Method
recur
recur
77. Combinations/Solution.cpp:17
↓ 1 callers
Method
restoreIpAddresses
Input: "25525511135" Output: ["255.255.11.135", "255.255.111.35"]
93. Restore IP Addresses/Solution.cpp:38
↓ 1 callers
Method
reversePairs
493. Reverse Pairs/Solution.cpp:45
↓ 1 callers
Function
reverse_k_group
(mut head: Option<Box<ListNode>>, k: i32)
1669. Minimum Cost to Cut a Stick/src/main.rs:354
↓ 1 callers
Method
simplifyPath
71. Simplify Path/Solution.cpp:9
↓ 1 callers
Function
simulate_anneal
(w: &mut Vec<i32>, bs: i32)
1815. Checking Existence of Edge Length Limited Paths/src/lib.rs:8
↓ 1 callers
Method
strStr
28. Implement strStr()/Solution.cpp:69
↓ 1 callers
Method
sumFourDivisors
Weekly Contest 181/1390. Four Divisors/Solution.cpp:15
↓ 1 callers
Method
tail
(&self)
1825. Find Minimum Time to Finish All Jobs/src/lib.rs:22
↓ 1 callers
Function
te
(a: Rc<String>)
1669. Minimum Cost to Cut a Stick/src/main.rs:31
↓ 1 callers
Function
test
()
1814. Jump Game VI/src/lib.rs:45
↓ 1 callers
Function
testB
(a: &mut A)
1759. Find the Missing IDs/src/main.rs:56
↓ 1 callers
Method
top
(&mut self)
704. 二分查找/src/main.rs:95
↓ 1 callers
Method
traverse
(&mut self, root: Rc<RefCell<TreeNode>>)
Tree/113. Path Sum II/src/main.rs:51
↓ 1 callers
Method
unite
(&mut self, a: usize, b: usize)
1632. Number of Good Ways to Split a String/src/lib.rs:19
Method
CustomStack
Weekly Contest 180/1381. Design a Stack With Increment Operation/Solution.cpp:16
Method
Engineer
Weekly Contest 180/1383. Maximum Performance of a Team/Solution.cpp:22
Method
ListNode
82. Remove Duplicates from Sorted List II/Solution.cpp:7
Method
ListNode
109. Convert Sorted List to Binary Search Tree/Solution.cpp:16
Method
ListNode
83. Remove Duplicates from Sorted List/Solution.cpp:14
Method
ListNode
86. Partition List/Solution.cpp:12
Method
ListNode
160. Intersection of Two Linked Lists/Solution.cpp:7
Method
ListNode
Weekly Contest 178/1367. Linked List in Binary Tree/Solution.cpp:11
Method
Solution
99. Recover Binary Search Tree/Solution.cpp:27
Method
Solution
493. Reverse Pairs/Solution.cpp:16
Method
Solution
543. Diameter of Binary Tree/Solution.cpp:25
Function
Test1
(t *testing.T)
133. Clone Graph/solution_test.go:7
Method
TreeNode
95. Unique Binary Search Trees II/Solution.cpp:16
Method
TreeNode
105. Construct Binary Tree from Preorder and Inorder Traversal/Solution.cpp:17
Method
TreeNode
109. Convert Sorted List to Binary Search Tree/Solution.cpp:23
Method
TreeNode
102. Binary Tree Level Order Traversal/Solution.cpp:17
Method
TreeNode
Tree/236. Lowest Common Ancestor of a Binary Tree/Solution.cpp:10
Method
TreeNode
99. Recover Binary Search Tree/Solution.cpp:17
Method
TreeNode
98. Validate Binary Search Tree/Solution.cpp:16
Method
TreeNode
94. Binary Tree Inorder Traversal/Solution.cpp:17
Method
TreeNode
101. Symmetric Tree/Solution.cpp:18
Method
TreeNode
Weekly Contest 180/1382. Balance a Binary Search Tree/Solution.cpp:16
Method
TreeNode
Weekly Contest 178/1367. Linked List in Binary Tree/Solution.cpp:18
Method
TreeNode
543. Diameter of Binary Tree/Solution.cpp:18
Method
UndergroundSystem
Weekly Contest 182/1396. Design Underground System/Solution.cpp:23
Method
_equal
both end inclusive
Weekly Contest 181/1392. Longest Happy Prefix/Solution.cpp:16
Function
a
()
1669. Minimum Cost to Cut a Stick/src/main.rs:636
Function
a
()
1444. Number of Steps to Reduce a Number to Zero/src/main.rs:114
Method
a
(&mut self)
1669. Minimum Cost to Cut a Stick/src/main.rs:123
Method
a
(b: &mut std::str::Chars)
1759. Find the Missing IDs/src/main.rs:91
Method
add
(root: &mut Trie, num: i32)
1803. Average Waiting Time/src/lib.rs:62
Method
add
n == 2, [1,0] n == 3, [1,1,0] n == 4, [1,2,1,0] n == 5, [1,2,2,1,0]
cn/821. 字符的最短距离/src/main.rs:27
Method
add
(n: i32, res: &mut Vec<i32>, base: i32)
cn/386. 字典序排数/src/main.rs:20
Method
add_at_head
(&mut self, val: i32)
704. 二分查找/src/main.rs:611
Method
add_at_index
(&mut self, index: i32, val: i32)
704. 二分查找/src/main.rs:633
Method
add_at_tail
(&mut self, val: i32)
704. 二分查找/src/main.rs:620
Method
add_binary
(a: String, b: String)
67. Add Binary/src/main.rs:8
Method
add_two_numbers
(l1: Option<Box<ListNode>>, l2: Option<Box<ListNode>>)
2. Add Two Numbers/src/main.rs:112
Method
add_two_numbers_recursive
(l1: Option<&Box<ListNode>>, l2: Option<&Box<ListNode>>, carry: i32)
2. Add Two Numbers/src/main.rs:95
Function
adv
()
1802. Number of Students Unable to Eat Lunch/src/lib.rs:29
Method
are_numbers_ascending
(s: String)
2042. Maximum Product Difference Between Two Pairs/src/lib.rs:4
Function
are_sentences_similar
(sentence1: String, sentence2: String)
1813. Maximum Erasure Value/src/lib.rs:1
Method
backspaceCompare
go from back to front
Two Pointers/844. Backspace String Compare/Solution.cpp:8
Method
backspace_compare
two array walk through
Two Pointers/844. Backspace String Compare/src/main.rs:9
Method
balanceBST
Weekly Contest 180/1382. Balance a Binary Search Tree/Solution.cpp:49
Function
basic
()
51. N-Queens/src/main.rs:60
Function
basic
()
213. House Robber II/src/main.rs:41
Function
basic
()
82. Remove Duplicates from Sorted List II/src/main.rs:49
Function
basic
()
49. Group Anagrams/src/main.rs:58
Function
basic
()
6. ZigZag Conversion/src/main.rs:62
Function
basic
()
Merge Intervals/57. Insert Interval/src/main.rs:43
Function
basic
()
Merge Intervals/56. Merge Intervals/src/main.rs:36
Function
basic
()
Merge Intervals/986. Interval List Intersections/src/main.rs:42
Function
basic
()
217. Contains Duplicate/src/main.rs:27
Function
basic
()
42. Trapping Rain Water/src/main.rs:44
Function
basic
()
704. 二分查找/src/main.rs:1074
Function
basic
()
29. Divide Two Integers/src/main.rs:38
Function
basic
()
58. Length of Last Word/src/main.rs:21
Function
basic
()
88. Merge Sorted Array/src/main.rs:31
Function
basic
()
14. Longest Common Prefix/src/main.rs:40
Function
basic
()
1046. Last Stone Weight/src/main.rs:32
Function
basic
()
16. 3Sum Closest/src/main.rs:41
Function
basic
()
62. Unique Paths/src/main.rs:24
Function
basic
()
39. Combination Sum/src/main.rs:42
Function
basic
()
Cyclic Sort/287. Find the Duplicate Number/src/main.rs:31
Function
basic
()
Cyclic Sort/268. Missing Number/src/main.rs:27
Function
basic
()
63. Unique Paths II/src/main.rs:33
Function
basic
()
855. Count Unique Characters of All Substrings of a Given String/src/lib.rs:126
Function
basic
()
855. Count Unique Characters of All Substrings of a Given String/src/lib_bkup_ac.rs:45
Function
basic
()
855. Count Unique Characters of All Substrings of a Given String/src/lib_bkup.rs:80
Function
basic
()
Weekly Contest 174/5328. The K Weakest Rows in a Matrix/src/main.rs:32
Function
basic
()
782. Transform to Chessboard/src/main.rs:142
Function
basic
()
23. Merge k Sorted Lists/src/main.rs:116
← previous
next →
101–200 of 1,163, ranked by callers