6 questions. Covers Boolean seen arrays.
Questions 1 to 5 of 6
cpp #include <iostream> #include <vector> using namespace std; int main() { vector<int> diff(7, 0); diff[1] += 3; diff[4] -= 3; diff[0] += 1; diff[2] -= 1; int run = 0; for (int i = 0; i < 6; i++) { run += diff[i]; cout << run << ' '; } cout << '\n'; }
rotateRight
k %= n
int
size_t
r
jagged[r].size()
jagged.size()
jagged[0].size()
5 question(s) left on this page.