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...
Single Number Question Problem Statement 题解 C++ Java 源码分析 Single Number Tags: Hash Table, Bit Manipulation, Easy Question leetcode: Single Number lintcode: Single Nu...
Square Matrix In-Place Rotation The Problem Examples Algorithm References Square Matrix In-Place Rotation The Problem You are given an n x n 2D matrix (representing an i...
ZigZag Conversion 描述 分析 代码 ZigZag Conversion 描述 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display t...
Next Permutation 描述 分析 代码 相关题目 Next Permutation 描述 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. I...
Balanced Binary Tree Question Problem Statement Example 题解1 - 递归 C++ Recursion with extra bool variable 源码解析 C++ Java 源码分析 复杂度分析 Balanced Binary Tree Question leet...
Happy Number Question Problem Statement 题解 Java 源码分析 复杂度分析 Happy Number Tags: Hash Table, Math, Easy Question leetcode: Happy Number lintcode: Happy Number Probl...