We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Could you plase explain why we have looped over N and not M? From my understanding, a1 and a2 need to be 2 arrays with 4 elements each. This means we should loop over M.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Array Mathematics
You are viewing a single comment's thread. Return to all comments →
In this case, N = 1 and M = 4.
Could you plase explain why we have looped over N and not M? From my understanding, a1 and a2 need to be 2 arrays with 4 elements each. This means we should loop over M.