"testing" class="section level2">
<h2 class="hasAnchor">
<a href="#testing" class="anchor"></a>Testing</h2>
<p>Using testComplexity functions we can verify the quadratic time complexity for this algorithm:</p>
<div class="sourceCode" id="cb1"><html><body><pre class="r"><span class="fu"><a href="https://rdrr.io/r/base/library.html">library</a></span>(<span class="no">testComplexity</span>)
<span class="no">df</span> <span class="kw">&lt;-</span> <span class="fu"><a href="../reference/asymptoticTimings.html">