mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-26 22:14:08 +08:00
Remove unnecessary code (#4141)
This commit is contained in:
@ -36,11 +36,7 @@ public class KrishnamurthyNumber {
|
||||
}
|
||||
|
||||
//evaluating if sum of the factorials of the digits equals the number itself
|
||||
if (tmp == s) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return tmp == s;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user