leetcode/src/problem/p190_reverse_bits.rs
2024-07-25 14:34:47 +08:00

25 lines
288 B
Rust

/**
* [190] Reverse Bits
*/
pub struct Solution {}
// submission codes start here
impl Solution {
pub fn reverse_bits(x: u32) -> u32 {
x.reverse_bits()
}
}
// submission codes end
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_190() {
}
}