Timeline for Count the number of arithmetic progressions within a sequence
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 29, 2021 at 17:18 | comment | added | JDługosz |
Using std::deque to avoid the explicit specialization of vector is something that was published as advice many, many years ago. Using char instead of bool might be harmless (though not optimal when testing a value since it has to insert a comparison) in this simple usage, in general it may cause differences with overloading, implicit conversion sequences, etc.
|
|
Apr 29, 2021 at 16:00 | comment | added | Toby Speight |
std::deque seems an odd choice for a container of unchanging size. Why not vector<char> ?
|
|
Apr 29, 2021 at 15:38 | history | answered | JDługosz | CC BY-SA 4.0 |