为你的 Astro 博客添加评论功能 #21
Replies: 3 comments 2 replies
-
测试评论 支持markdown支持代码片段use std::collections::HashMap;
fn two_sum(nums: &[i32], target: i32) -> Vec<i32> {
let mut num_map: HashMap<i32, i32> = HashMap::new();
for (i, &num) in nums.iter().enumerate() {
if let Some(&j) = num_map.get(&(target - num)) {
return vec![j, i as i32];
}
num_map.insert(num, i as i32);
}
vec![]
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
这个组件很好用,但是必须要用户必须要科学上网才行 |
Beta Was this translation helpful? Give feedback.
1 reply
-
问一下,具体来说什么时候适合用 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
为你的 Astro 博客添加评论功能
使用 giscus 为你的 Astro 博客添加评论功能。
http://localhost:4321/posts/add-comments-to-astro
Beta Was this translation helpful? Give feedback.
All reactions