GeniusOfCX

导航

leetcode 20 rust

题目 编程语言 rust 注意点 字符也可以用==,!= 代码 pub fn is_valid(s: String) -> bool { let mut p = Vec::new(); for i in s.chars() { match i { '[' => p.push(']'), '(' =>

posted on 2021-04-08 13:34  GeniusOfCX  阅读(36)  评论(0编辑  收藏  举报