20240725 Finished
This commit is contained in:
parent
5e0c518429
commit
207d8ff783
|
@ -183,4 +183,5 @@ mod p215_kth_largest_element_in_an_array;
|
|||
mod p502_ipo;
|
||||
mod p373_find_k_pairs_with_smallest_sums;
|
||||
mod p295_find_median_from_data_stream;
|
||||
mod p67_add_binary;
|
||||
mod p67_add_binary;
|
||||
mod p190_reverse_bits;
|
24
src/problem/p190_reverse_bits.rs
Normal file
24
src/problem/p190_reverse_bits.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* [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() {
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user