[Feedback] Remove the `impl Solution` from the expected method signature

There is absolutely no reason to require a dummy structure struct Solution for each leetcode problem. Rust has first class functions and the expected signature should be:

fn leet_code_task(a: i32, b: i32) -> i32{}

instead of

impl Solution{
    fn leet_code_task(a: i32, b: i32) -> i32{}
}

Personally I write the code in CLion and it's very annoying to have that additional nesting and to have to artificially create a dummy structure just to be able to compile my code.

Comments (0)