You're a square!
Description:
A square of squares
You like building blocks. You especially like building blocks that are squares. And what you even like more, is to arrange them into a square of square building blocks!
However, sometimes, you can't arrange them into a square. Instead, you end up with an ordinary rectangle! Those blasted things! If you just had a way to know, whether you're currently working in vain… Wait! That's it! You just have to check if your number of building blocks is a perfect square.
Task
Given an integral number, determine if it's a square number:
In mathematics, a square number or perfect square is an integer that is the square of an integer; in other words, it is the product of some integer with itself.
The tests will always use some integral number, so don't worry about that in dynamic typed languages.
Examples
-1 => false
0 => true
3 => false
4 => true
25 => true
26 => false
Similar Kata:
Stats:
Created | Jan 23, 2015 |
Published | Jan 23, 2015 |
Warriors Trained | 478139 |
Total Skips | 43836 |
Total Code Submissions | 865397 |
Total Times Completed | 284702 |
Haskell Completions | 1899 |
JavaScript Completions | 106173 |
Ruby Completions | 7081 |
CoffeeScript Completions | 295 |
Python Completions | 88660 |
Java Completions | 33179 |
C# Completions | 20495 |
Dart Completions | 1601 |
TypeScript Completions | 5171 |
C++ Completions | 15173 |
Scala Completions | 972 |
C Completions | 6219 |
Julia Completions | 180 |
Elixir Completions | 354 |
CommonLisp Completions | 249 |
COBOL Completions | 34 |
R Completions | 264 |
Crystal Completions | 23 |
PHP Completions | 1889 |
Rust Completions | 1582 |
Lua Completions | 271 |
D Completions | 18 |
F# Completions | 46 |
λ Calculus Completions | 7 |
Groovy Completions | 5 |
Total Stars | 2371 |
% of votes with a positive feedback rating | 88% of 22356 |
Total "Very Satisfied" Votes | 17447 |
Total "Somewhat Satisfied" Votes | 4425 |
Total "Not Satisfied" Votes | 484 |