题目地址:https://leetcode.com/problems/rotate-array/
题解地址:https://leetcode.com/articles/rotate-array/
题目Given an array, rotate the array to the right by
...
Fibonacci Number - LeetCode
题目The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is t
...
Pow(x, n) - LeetCode
题目Implement pow(x, n), which calculates x raised to the power n (xn).
Example 1:
12Input: 2.00000, 10Output: 1024.00000
Example
...
Write a function that takes an unsigned integer and return the number of ‘1’ bits it has (also known as the Hamming weight).
Example 1:
123Input: 000
...
题目来源:https://leetcode.com/problems/integer-break/
题目难度:Medium
题目Given a positive integer n, break it into the sum of at least two positive integers a
...
题目来源:https://leetcode.com/problems/longest-palindromic-substring/
题目难度:Medium
题目Given a string s, find the longest palindromic substring in s. You ma
...