---
title: "Discussion on \"Pow(x, n) — LeetCode #50\" | Hashnode"
description: "Discussion on \"Pow(x, n) — LeetCode #50\". Implement pow(x, n), which calculates x raised to the power n (i.e., xn).\nExample 1:\nInput: x = 2.00000, n = 10\nOutput: 1024.00000\n\nExample 2:\nInput: x = 2.10000, n = 3\nOutput: 9.26100\n\nExample 3:\nInput: x = 2.00000, n = -2\nOutput: 0.25000\nExplanatio..."
url: "https://hashnode.com/posts/powx-n-leetcode-50/63a97b1c7b534768c8f91ca6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pow(x, n) — LeetCode #50](https://normanaranez.hashnode.dev/powx-n-leetcode-50?utm_source=hashnode&utm_medium=feed)

Implement pow(x, n), which calculates x raised to the power n (i.e., xn). Example 1: Input: x = 2.00000, n = 10 Output: 1024.00000 Example 2: Input: x = 2.10000, n = 3 Output: 9.26100 Example 3: Input: x = 2.00000, n = -2 Output: 0.25000 Explanatio...

Dec 26, 2022 · 3 min read · normanaranez.hashnode.dev  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#python](https://hashnode.com/tag/python)
-   [#java](https://hashnode.com/tag/java)
-   [#php](https://hashnode.com/tag/php)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Norman Aranez](https://hashnode.com/@Cody123)

@Cody123

  
[View profile](https://hashnode.com/@Cody123)

Helping you navigate the world of technology with clarity and precision.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
