-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37fcdd0
commit c6a92ae
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# [Find out whether the shape is a cube](https://www.codewars.com/kata/find-out-whether-the-shape-is-a-cube "https://www.codewars.com/kata/58d248c7012397a81800005c") | ||
|
||
To find the volume (centimeters cubed) of a cuboid you use the formula: | ||
|
||
```volume = Length LICENSE build.gradle.kts docs gradle gradle.properties gradlew gradlew.bat kata settings.gradle.kts Width LICENSE build.gradle.kts docs gradle gradle.properties gradlew gradlew.bat kata settings.gradle.kts Height``` | ||
|
||
But someone forgot to use proper record keeping, so we only have the volume, and the length of a single side! | ||
|
||
It's up to you to find out whether the cuboid has equal sides (= is a cube). | ||
|
||
Return `true` if the cuboid could have equal sides, return `false` otherwise. | ||
|
||
Return `false` for invalid numbers too (e.g volume or side is less than or equal to 0). | ||
|
||
Note: side will be an integer |