Hi! How they get this numbers? i know they print 1 to 10, but how they get it in
ID: 3643478 • Letter: H
Question
Hi! How they get this numbers? i know they print 1 to 10, but how they get itint adj[N][N]={{0,1,1,0,0,0,0,0,0,1},
{0,0,0,0,1,0,0,0,0,1},
{0,0,0,0,1,0,1,0,0,0},
{1,0,1,0,0,1,1,0,0,1},
{0,0,0,0,0,0,1,1,0,0},
{0,0,0,1,0,0,0,1,0,0},
{0,0,0,0,0,0,0,1,1,1},
{0,0,1,0,0,0,0,0,0,0},
{0,0,0,1,0,0,0,0,0,0},
{0,0,1,0,0,0,0,1,1,0}};
Explanation / Answer
> w2 [1] 3.5 1.0 1.5 2.5 > max(w2) [1] 3.5 > w3 [1] -2 3 2 0 > mean(w3) [1] 0.75 > v1 [1] 7 2 3 5 > sum(v1) [1] 17 > v4 [1] 1 2 3 4 > prod(v4) [1] 24 > v5 [1] 3 3 3 3 1 2 3 4 7 > length(v5) [1] 9
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.