Problem

Return (int) Math.sqrt(n) for perfect squares.

Examples

  • mathSqrtFloor(16) -> 4
  • mathSqrtFloor(81) -> 9
Compile and test (Ctrl+Enter)