about | help | code help+videos | done | prefs |
canFitInside
Define a function when passed the widths and heights of two rectangles, returns true if the first rectangle can fit inside the second rectangle. Note that a rectangle must be STRICTLY smaller (not equal) to another rectangle to fit inside it. The test cases should help you with this. canFitInside(10, 20, 10, 20) → false canFitInside(2, 11, 10, 10) → false canFitInside(11, 2, 11, 11) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 3 Post-solution available
Copyright Nick Parlante 2017 - privacy