ARTS #211 | 管理也要单点打穿 周末,去山姆为圣诞节囤货~ Algorithm 本周选择的算法题是:Path Crossing。 impl Solution { pub fn is_path_crossing(path: String) -> bool { use std::collections::HashSet; let mut visited = Has...
ARTS #210 | 小老虎周岁了 今天一周岁,抓了本书~ Algorithm 本周选择的算法题是:Transpose Matrix。 impl Solution { pub fn transpose(matrix: Vec<Vec<i32>>) -> Vec<Vec<i32>> { let mut ans = vec。 use std::collections::HashMap; impl Solution { pub fn soup_servings(n: i32)...
