title: Comparing two arrays
body: <p>I've two arrays, say A = {1,2,3,4,5} and B = {5,6,3,4,5}. I want to compare the two arrays and tell how many elements in A are lesser than B and vice versa and also possibly the elements position which are lesser. I can do this using nested loop but is there a efficient way in C++ to do this ?</p>
  
  <p>In this example,
  A = {1,2,3,4,5}
  B = {5,6,3,4,5}</p>
  
  <p>So I expect the answer to be "B is greater than A" just because it satisfies the condition that it is greater in two elements. or if it is</p>
  
  <p>A = {1,2,3,4,5} and B = {1,2,3,0,4}, A is greater. </p>
  
  <p>I need to compare only the number if elements greater or lesser and not the values in itself.</p>
  
  <p>Sorry for my ambiguity. </p>