You are viewing a single comment's thread. Return to all comments →
THIS APPROACH IS COMPLEX OR EASY??? IS IT GOOD APPROACH IN TIME AND SPACE COMPLEXITY.... PASSING ALL THE TEST CASES
static int lowest(int base, int area) { int h; h= 2*area/base; if(h*base<2*area) { h=h+1; } else { h=h;; } return h; }
Seems like cookies are disabled on this browser, please enable them to open this website
Minimum Height Triangle
You are viewing a single comment's thread. Return to all comments →
THIS APPROACH IS COMPLEX OR EASY??? IS IT GOOD APPROACH IN TIME AND SPACE COMPLEXITY.... PASSING ALL THE TEST CASES