Using a <a href="https://en.wikipedia.org/wiki/Cartesian_tree" class="extiw" title="en:Cartesian tree">Cartesian tree</a> to solve three-sided <a href="https://en.wikipedia.org/wiki/Range_searching" class="extiw" title="en:Range searching">range searching</a> problems
<a href="//commons.wikimedia.org/wiki/User:David_Eppstein" class="mw-redirect" title="User:David Eppstein">David Eppstein</a>
<span class="int-own-work" lang="en">Own work</span>