# Week5 (Apr 15) ## 190. Reverse Bits ### Question Reverse bits of a given 32 bits unsigned integer. **Note:** * Note that in some languages, such as Java, there is no unsigned integer type. In this case, both input and output will be given as a signed integer type. They should not affect your implementation, as the integer's internal binary representation is the same, whether it is signed or unsigned. * In Java, the compiler represents the signed integers using **2's complement notation**. Therefore, in Example 2 above, the input represents the signed integer <mark>-3</mark> and the output represents the signed integer <mark>-1073741825</mark>. ### Hand in homework before Saturday. :::success [Allen的作業](https://github.com/allen870619/leetcode_practice/blob/main/1-500/190.%20Reverse%20Bits.playground/Contents.swift) [Roger的作業](https://github.com/GametreeRoger/LeetCode/blob/main/LeetCode190.playground/Contents.swift) [xander的作業](https://github.com/Takumi47/30Plus/blob/main/30Plus/Problems/190_ReverseBits.swift) [woody的作業](https://github.com/woodycatliu/leetcode/blob/main/0190_ReverseBits/190.swift) ...`Continue filling by yourself` ::: ## 100. Same Tree ### Question Given the roots of two binary trees <mark>$p$</mark> and <mark>$q$</mark>, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical, and the nodes have the same value. ### Hand in homework before Saturday. :::success [Allen的作業](https://github.com/allen870619/leetcode_practice/tree/main/1-500/100.%20Same%20Tree.playground) [Roger的作業](https://github.com/GametreeRoger/LeetCode/blob/main/LeetCode100.playground/Contents.swift) [xander的作業](https://github.com/Takumi47/30Plus/blob/main/30Plus/Problems/100_SameTree.swift) [woody的作業](https://github.com/woodycatliu/leetcode/blob/main/0100_SameTree/100.swift) ...`Continue filling by yourself` ::: ## 1344. Angle Between Hands of a Clock ### Question Given two numbers, <mark>*hour*</mark> and <mark>*minutes*</mark>, return the smaller angle (in degrees) formed between the <mark>*hour*</mark> and the <mark>*minutes*</mark> hand. Answers within <mark>$10^{-5}$</mark> of the actual value will be accepted as correct. ### Hand in homework before Saturday. :::success [Allen的作業](https://github.com/allen870619/leetcode_practice/blob/main/1001-1500/1344.%20Angle%20Between%20Hands%20of%20a%20Clock.playground/Contents.swift) [Roger的作業](https://github.com/GametreeRoger/LeetCode/blob/main/LeetCode1344.playground/Contents.swift) [xander的作業](https://github.com/Takumi47/30Plus/blob/main/30Plus/Problems/1344_AngleBetweenHandsOfAClock.swift) [woody的作業](https://github.com/woodycatliu/leetcode/blob/main/1344_AngleBetweenHandsOfAClock/1344.swift) ...`Continue filling by yourself` :::