extern crate rustc_serialize;
use rustc_serialize::hex::{FromHex, ToHex};
fn main () {
let hello_str = "Hello, World".as_bytes().to_hex();
println!("{}", hello_str);
let bytes = hello_str.from_hex().unwrap();
println!("{:?}", bytes);
let result_str = String::from_utf8(bytes).unwrap();
println!("{}", result_str);
}
In a set of strings of equal lengths, the minimum Hamming distance is the smallest Hamming distance between all possible pairs of strings in that set.
calculate xor of two strings , count the numbers of 1s in the resultant