Rust: 0-4ms, 100% Runtime - Iterative Solution
rust\nimpl Solution {\n    pub fn ambiguous_coordinates(s: String) -> Vec<String> {\n        let s = &s.as_bytes()[1..s.len() - 1]; // ignore the parenthesis ar
```rust\nimpl Solution {\n    pub fn ambiguous_coordinates(s: String) -> Vec<String> {\n        let s = &s.as_bytes()[1..s.len() - 1]; // ignore the parenthesis around the coords\n        (1..s.len()).fold(vec![], |mut acc, commai| {\n            let (x, y) = s.split_at(commai);\n            (0..x.len())\n                .filter_map(|doti| Self::make_coord(x, doti))\n                .for_each(|x| {\n                    (0..y.len())\n                        .filter_map(|doti| Self::make_coord(y, doti))\n                        .for_each(|y| acc.push(format!("({}, {})", x, y)))\n                });\n            acc\n        })\n    }\n\n    fn make_coord(s: &[u8], doti: usize) -> Option<String> {\n        if (s.len() == 1 || doti == 1 || s[0] != b\'0\') && (doti == 0 || s[s.len() - 1] != b\'0\') {\n            let (l, r) = s.split_at(doti);\n            let l = unsafe { String::from_utf8_unchecked(l.into()) }; // these are safe, as s is\n            let r = unsafe { String::from_utf8_unchecked(r.into()) }; // always valid ASCII\n            Some(format!("{}{}{}", l, if l.is_empty() { "" } else { "." }, r))\n        } else {\n            None\n        }\n    }\n}\n```
['Iterator', 'Rust']