7 kyu
Automorphic Number (Special Numbers Series #6)
1,615 of 12,289MrZizoScream
Description:
A number is called Automorphic number if and only if its square ends in the same digits as the number itself. For example, 25
is an automorphic number because its square (625
) ends with 25
.
Task
Given a positive number, determine if it is Automorphic or not. If it is, return "Automorphic"
, otherwise return "Not!!"
Examples
25
is an automorphic number, because ends with25
, so return"Automorphic"
.13
is not an automorphic number, because does not end with13
, so return"Not!!"
.76
is an automorphic number, because ends with76
, so return"Automorphic"
.225
is not an automorphic number, because does not end with225
, so return"Not!!"
.625
is an automorphic number, because ends with625
, so return"Automorphic"
.1
is an automorphic number, because ends with1
, so return"Automorphic"
.6
is an automorphic number, because ends with6
, so return"Automorphic"
.
Fundamentals
Mathematics
Similar Kata:
Stats:
Created | Jan 12, 2018 |
Published | Jan 12, 2018 |
Warriors Trained | 17157 |
Total Skips | 1078 |
Total Code Submissions | 34491 |
Total Times Completed | 12289 |
C++ Completions | 821 |
JavaScript Completions | 3976 |
Python Completions | 3819 |
Crystal Completions | 14 |
Ruby Completions | 268 |
C Completions | 318 |
Java Completions | 1615 |
C# Completions | 566 |
Haskell Completions | 113 |
NASM Completions | 21 |
PHP Completions | 282 |
Julia Completions | 31 |
Dart Completions | 387 |
TypeScript Completions | 263 |
CoffeeScript Completions | 14 |
Prolog Completions | 24 |
Clojure Completions | 43 |
Rust Completions | 204 |
F# Completions | 30 |
R Completions | 59 |
COBOL Completions | 5 |
Total Stars | 147 |
% of votes with a positive feedback rating | 94% of 1612 |
Total "Very Satisfied" Votes | 1424 |
Total "Somewhat Satisfied" Votes | 167 |
Total "Not Satisfied" Votes | 21 |
Total Rank Assessments | 21 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 8 kyu |