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 | 477889 |
Total Skips | 43818 |
Total Code Submissions | 864987 |
Total Times Completed | 284544 |
Haskell Completions | 1898 |
JavaScript Completions | 106123 |
Ruby Completions | 7078 |
CoffeeScript Completions | 295 |
Python Completions | 88593 |
Java Completions | 33171 |
C# Completions | 20488 |
Dart Completions | 1601 |
TypeScript Completions | 5166 |
C++ Completions | 15161 |
Scala Completions | 972 |
C Completions | 6214 |
Julia Completions | 179 |
Elixir Completions | 354 |
CommonLisp Completions | 249 |
COBOL Completions | 34 |
R Completions | 264 |
Crystal Completions | 23 |
PHP Completions | 1889 |
Rust Completions | 1580 |
Lua Completions | 270 |
D Completions | 18 |
F# Completions | 46 |
λ Calculus Completions | 7 |
Groovy Completions | 5 |
Total Stars | 2370 |
% of votes with a positive feedback rating | 88% of 22353 |
Total "Very Satisfied" Votes | 17445 |
Total "Somewhat Satisfied" Votes | 4424 |
Total "Not Satisfied" Votes | 484 |