25 lines
288 B
Rust
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() {
|
|
}
|
|
}
|