title: Hi, im struggling to understand O-notation runtime for the if statement in this piece of code
body: <pre><code>for (int i=0; i&lt;V-1; i++) {
      for (int j=i+1; j&lt;V; j++) {
          if (matrix[i][j]) {
              from[nextedge]=i;
              to[nextedge]=j;
              nextedge++;
          }
      }
  }
  </code></pre>
  
  <p>I am trying to find out the o notation runtime for the if statement and inner for loop but am struggling with how to solve this</p>