Skip to content

Files

Latest commit

author
Aneta Solunska
Aug 8, 2024
f050d4e · Aug 8, 2024

History

History
This branch is 2 commits ahead of, 16 commits behind igorwojda/kotlin-coding-challenges:main.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 8, 2024
Feb 7, 2023
Feb 7, 2023

Power

Instructions

Given positive integer base and positive integer exponent implement a function which calculates power of base of exponent. This function should mimic functionality of Math.pow.

Challenge | Solution

Examples

power(2, 1) // 1

power(2, 2) // 4

power(3, 3) // 27