Reverse Integer 描述 分析 代码 相关题目 Reverse Integer 描述 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about thi...
LCA of Binary Tree 描述 分析 代码 相关题目 LCA of Binary Tree 描述 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the defini...
Product of Array Except Self 描述 分析 代码1 O(n)空间 代码2 O(1)空间 Product of Array Except Self 描述 Given an array of n integers where n > 1 , nums , return an array output such th...
Ugly Number II 描述 分析 代码 相关题目 Ugly Number II 描述 Write a function to find the n -th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5...
Word Search 描述 分析 代码 Word Search 描述 Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent ce...