# Week6 (Apr 22)
## 151. Reverse Words in a String
### Question
Given an input string <mark>s</mark>, reverse the order of the **words**.
A **word** is defined as a sequence of non-space characters. The **words** in <mark>s</mark> will be separated by at least one space.
Return a string of the **words** in reverse order concatenated by a single space.
**Note** that <mark>s</mark> may contain leading or trailing spaces or multiple spaces between two words. The returned string should only have a single space separating the words. Do not include any extra spaces.
### Hand in homework before Saturday.
:::success
[woody的作業](https://github.com/woodycatliu/leetcode/blob/main/0151_ReverseWordsInAString/151.swift)
[Roger的作業](https://github.com/GametreeRoger/LeetCode/blob/main/LeetCode151.playground/Contents.swift)
[xander的作業](https://github.com/Takumi47/30Plus/blob/main/30Plus/Problems/151_ReverseWordsInAString.swift)
[Wen的作業](https://github.com/Tseng-W/LeetCodePractice/blob/main/LeetCodeStudy.playground/Pages/151.%20Reverse%20Words%20in%20a%20String.xcplaygroundpage/Contents.swift)
[Allen的作業](https://github.com/allen870619/leetcode_practice/blob/main/1-500/151.%20Reverse%20Words%20in%20a%20String.playground/Contents.swift)
...`Continue filling by yourself`
:::
## 50. Pow(x, n)
### Question
Implement <mark>$pow(x, n)$</mark>, which calculates <mark>$x$</mark> raised to the power <mark>$n$</mark> (i.e., <mark>$x^n$</mark>).
### Hand in homework before Saturday.
:::success
[woody的作業](https://github.com/woodycatliu/leetcode/blob/main/0050_Pow-x-y/50.swift)
[Roger的作業](https://github.com/GametreeRoger/LeetCode/blob/main/LeetCode50.playground/Contents.swift)
[xander的作業](https://github.com/Takumi47/30Plus/blob/main/30Plus/Problems/50_Pow(x%2Cn).swift)
[Wen的作業](https://github.com/Tseng-W/LeetCodePractice/blob/main/LeetCodeStudy.playground/Pages/50.%20Pow(x%2C%20n).xcplaygroundpage/Contents.swift)
[Allen的作業](https://github.com/allen870619/leetcode_practice/blob/main/1-500/50.%20Pow(x%2C%20n).playground/Contents.swift)
...`Continue filling by yourself`
:::