Spiral Matrix II 描述 分析 代码1 代码2 相关题目 Spiral Matrix II 描述 Given an integer n , generate a square matrix filled with elements from 1 to n^2 in spiral order. For example,G...
Maximum Product of Word Lengths 描述 分析 解法1 解法2 Maximum Product of Word Lengths 描述 Given a string array words , find the maximum value of length(word[i]) * length(word[j]) ...
Repeated DNA Sequences 描述 分析 解法1 简单粗暴 解法2 完美哈希 Repeated DNA Sequences 描述 All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAA...
Word Break 描述 分析 深搜 动规 相关题目 Word Break 描述 Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more...
Binary Tree Inorder Traversal 描述 分析 栈 Morris中序遍历 相关题目 Binary Tree Inorder Traversal 描述 Given a binary tree, return the inorder traversal of its nodes' values. For exam...