Closed dbekzhan closed 3 weeks ago
Yes, you can import any type from the standard library.
Thank you! And whan about importing anything from std in general. For example, std::cmp::*?
I fixed the original comment to confirm you can use any types from the std. Just make sure that it passes the tests in gg.
Related Issue
no
Googling Result
no
ChatGPT Result
no
Your question here
Can we import more datatypes from std::collections?
When implementing Pythagorean struct, it says that we can add more fields. I assume it implies adding fields to the struct. However, I wanted to confirm if we can import datatypes from std::collections that might be helpful for struct fields?
For example:
use std::collections::*;
struct Pythagorean {
// custom fields using some datatypes from std::collections
}
As of now, there is only
use std::collections::HashSet;
available in the template code.