mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
refactor: unified duplicate Anagram classes into a single implementation (#6290)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
/**
|
||||
* A number is said to be Dudeney if the sum of the digits, is the cube root of the entered number.
|
||||
* Example- Let the number be 512, its sum of digits is 5+1+2=8. The cube root of 512 is also 8.
|
||||
* Since, the sum of the digits is equal to the cube root of the entered number;
|
||||
* it is a Dudeney Number.
|
||||
*/
|
||||
package com.thealgorithms.maths;
|
||||
|
||||
public final class DudeneyNumber {
|
||||
private DudeneyNumber() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user