rust solution
\n\nimpl Solution {\n    pub fn reordered_power_of2(n: i32) -> bool {\n\n        let mut log = (n as f32).log2();\n        if n == i32::pow(2, log as u32) {\n  
```\n\nimpl Solution {\n    pub fn reordered_power_of2(n: i32) -> bool {\n\n        let mut log = (n as f32).log2();\n        if n == i32::pow(2, log as u32) {\n            return true;\n        }\n\n        let mut n_s = n.to_string().chars().collect::<Vec<char>>();\n\n        n_s.sort();\n\n        for i in 0..30 {\n            let pow_2 = i64::pow(2, i);\n            \n\n            let mut pow_2_s = pow_2.to_string().chars().collect::<Vec<char>>();\n\n            pow_2_s.sort();\n\n            if pow_2_s == n_s {\n                println!("found at {}", pow_2);\n                return true;\n            }\n            \n            \n        }\n\n        return false;\n    }\n}\n\n```
[]