Challenge for Ruby Basics

Challenge

ab is considered powerful if (and only if) both of the following 2 conditions are met:

  1. ab >= 2 * b2
  2. ab >= (a*b)2

return true if ab is powerful and false otherwise.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]