# Cubic Minefield Javascipt

**URL:** <https://discourse.codecombat.com/t/cubic-minefield-javascipt/30968>\
**Category:** Level Help\
**Created:** [October 14, 2021, 1:18pm UTC](https://discourse.codecombat.com/t/cubic-minefield-javascipt/30968 "2021-10-14T13:18:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![enPointe77](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/enpointe77/32/43632_2.png) [@enPointe77](https://discourse.codecombat.com/u/enPointe77)\
**Post date:** [October 14, 2021, 4:30pm UTC](https://discourse.codecombat.com/t/cubic-minefield-javascipt/30968/5 "2021-10-14T16:30:15Z")

</div>

I know this is in python, but it says what to do:

> [@Cubic Minefield, Code is too slow?](https://discourse.codecombat.com/t/cubic-minefield-code-is-too-slow/29323):
>
> Here’s my code: # Walk through the minefield # This function returns the number multiplied by the times def mult(number, times): total = 0 while times \> 0: total += number times -= 1 return total # This function returns the number to the exponent power. def power(number, exponent): total = 1 # Complete the function. while exponent \> 1: total += number exponent -= 2 return total # Don't change the following code # You can find coeffi…

---

_[View the full topic](https://discourse.codecombat.com/t/cubic-minefield-javascipt/30968)._
