Nested Shape Algorithm:

<p>This was a problem I encountered while working on a Java program which involves mostly some geometry and some algorithm analysis, so I hope you enjoy.</p> <p>Consider this problem. You have a bunch of 2D shapes stored as Shape objects, with dimensional attributes, that you need check for the ability to be nested in each other. The selection of shapes you&rsquo;ve been given include&nbsp;<em>squares, circles, and rectangles</em>. How would you create an algorithm that gives you a list of shapes that fit inside some &lsquo;Shape&rsquo;? What data structure do you use, and how do you call for a comparison?</p> <p><a href="https://medium.com/@winstontsia/nested-shape-algorithm-295a75b5b01c"><strong>Learn More</strong></a></p>