# LeetCode 151. Reverse Words in a String

题目Given an input string, reverse the string word by word.
Example 1:
12Input: "the sky is blue"Output: "blue is sky the"
Example
...

题目Given an input string, reverse the string word by word.
Example 1:
12Input: "the sky is blue"Output: "blue is sky the"
Example
...

题目Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minute hand.
Example 1:
12Input: hour = 1
...

题目Given two binary trees, write a function to check if they are the same or not.
Two binary trees are considered the same if they are structurally ide
...

题目Reverse bits of a given 32 bits unsigned integer.
Example 1:
123Input: 00000010100101000001111010011100Output: 00111001011110000010100101000000Expla
...

题目Given a set of distinct integers, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Exam
...

题目You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to
...

题目Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The bin
...

题目Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the
...

题目You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water.
Grid cells are connected horizontally/
...

题目Given a non-empty array of digits representing a non-negative integer, plus one to the integer.
The digits are stored such that the most significant
...