aboutsummaryrefslogtreecommitdiff
path: root/max_69.rs
diff options
context:
space:
mode:
Diffstat (limited to 'max_69.rs')
-rw-r--r--max_69.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/max_69.rs b/max_69.rs
deleted file mode 100644
index 0bead97..0000000
--- a/max_69.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-struct Solution;
-
-impl Solution {
- pub fn maximum69_number(num: i32) -> i32 {
- num.to_string().replacen("6", "9", 1).parse().unwrap()
- }
-}
-
-fn main() {
- print!("{}", Solution::maximum69_number(9669));
-}