240 投稿
收录了281篇文章 · 123人关注
  • Resize,w 360,h 240
    二维观察

    思维导图的矢量图 访问密码 e9ed 深入讨论在输出设备上显示二维图形的问题 [TOC] 1. 二维观察流水线 观察流水线:将该场景的世界坐...

  • LeetCode 277 [Find the Celebrity]

    原题 Suppose you are at a party with n people (labeled from 0 ton - 1) and...

  • LeetCode 361 [Bomb Enemy]

    原题 Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empt...

  • LeetCode 298 [Binary Tree Longest Consecutive Sequence]

    原题 给一个二叉树,求其中最长连续序列的长度 样例比如,下面的树,最长序列为3->4->5,返回3 解题思路 递归求解,分别向左右子树递归,判断...

  • LeetCode 394 [Decode String]

    原题 给一段string,解码 样例 解题思路 一个stack记录倍数 一个stack记录string 遇到"["添加倍数(因为倍数可能是“12...

  • LintCode 144 [Interleaving Positive and Negative Numbers]

    原题 给出一个含有正整数和负整数的数组,重新排列成一个正负数交错的数组。 样例给出数组[-1, -2, -3, 4, 5, 6],重新排序之后,...

  • LeetCode 389 [Find the Difference]

    原题 给出两个字符串,只有一处不同,一个字符串比两一个多一个字符,找出这个字符 样例 解题思路 合并两个字符串,题目转化为寻找单身狗 完整代码

  • LeetCode 38 [Count and Say]

    原题 报数指的是,按照其中的整数的顺序进行报数,然后得到下一个数。如下所示:1, 11, 21, 1211, 111221, ...1 读作 "...

  • LintCode 387 [The Smallest Difference]

    原题 给定两个整数数组(第一个是数组 A,第二个是数组 B),在数组 A 中取 A[i],数组 B 中取 B[j],A[i] 和 B[j]两者的...

  • LeetCode 22 [Generate Parentheses]

    原题 给定 n 对括号,请写一个函数以将其生成新的括号组合,并返回所有组合结果。 样例给定 n = 3, 可生成的组合如下:"((()))", ...