Ad
  • Default User Avatar

    in sql, the description does not specify wether the output table should have 2 columns or only the res column. That being said, I do believe that outputting 2 columns, the number of angles and the total sum of angles is much better coding practice than just outputting one column just

  • Custom User Avatar

    Schema of input and desired output tables are not described, seems like test cases are whack too.

  • Custom User Avatar

    Well, the random_tests actually sometimes include input that is <= 2!
    Thus the statement N will be greater than 2 is incorrect!

    E.g. this code in Rust:

    fn angle(n: u32) -> u32 {
        assert!(n > 2, "invalid input: n must be bigger than 2");
        // ...
    }
    

    sometimes does not pass the random_tests and says:

     Test Failed
    invalid input: n must be bigger than 2