Question: In c++ Write a function vector diamondsequence(vector &m) where m is the NxN matrix with odd N>2 and returns the diamond sequence if m is
In c++
Write a function
vector diamondsequence(vector
where
m is the NxN matrix with odd N>2 and returns the diamond sequence if m is an NxN matrix with odd N>2,
otherwise returns the empty sequence.
File you must submit: soln_func.cc
Examples:
a) 1 2 3 4 5 11 12 13 14 15 6 7 8 9 10 21 22 23 24 25 16 17 18 19 20 3 14 10 24 18 22 6 12
b) 1 2 4 5 6 7 9 10 21 22 24 25 16 17 19 20
c) 1 2 3 4 5 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
