Skip to content

Commit

Permalink
docs: kata description
Browse files Browse the repository at this point in the history
  • Loading branch information
ParanoidUser committed Jan 3, 2025
1 parent 37fcdd0 commit c6a92ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions kata/8-kyu/find-out-whether-the-shape-is-a-cube/README.md
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

0 comments on commit c6a92ae

Please sign in to comment.