• Sign Up
  • Kata
  • Kumite
  • Forum
  • Wiki
  • Leaders
  • Log In
  • Sign Up
Name:Imed Adel
Clan:Unknown
Member Since:Dec 2016
Last Seen:Oct 2019
Profiles:
Following:1
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (4)
  • Replies
  • Authored
  • Needs Resolution
    • jakelucasnyc
    • commented on "You're a square!" cpp solution

    He's checking to see if the sqrt() function has decimals by comparing the base sqrt(n) to the rounded down version (floor()) of sqrt(n). If they are equal and the function returns true, then sqrt(n) must have no decimals. Thus, n is a perfect square.

    • kjbethea
    • commented on "You're a square!" cpp solution

    why are you using floor specifically?

    • rowcased
    • commented on "You're a square!" cpp solution

    floor in C++

    • philip1987
    • commented on "You're a square!" cpp solution

    What does the function floor do?

  • © 2021 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Contact
  • powered by

Confirm

  • Cancel
  • Confirm