mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
🌈 style(codes/rust): add miss comment in leetcode_two_sums and time_complexity
This commit is contained in:
@@ -15,6 +15,7 @@ fn constant(n: i32) -> i32 {
|
||||
count
|
||||
}
|
||||
|
||||
/* 线性阶 */
|
||||
fn linear(n: i32) -> i32 {
|
||||
let mut count = 0;
|
||||
for _ in 0..n {
|
||||
|
||||
Reference in New Issue
Block a user