Wrong Subtraction
Problem URL: Wrong Subtraction
use std::io;
fn main(){
let mut input_text = String::new();
io::stdin().read_line(&mut input_text).expect("failed to read from stdin");
let inputs: Vec<u32> = input_text.trim().split(" ").map(|x|{
...
omprakashsridharan.hashnode.dev
j
stuff ;)
you should write a bit more, of what you're doing. Also certain assumptions are not correct, but I guess this was just a 'let me apply the alogrithm thingy'. maybe add rustfmt and clippy to your toolchain as well.