Avatar notebook default
40篇文章 · 2512字 · 0人关注
  • 404. Sum of Left Leaves

    404. Sum of Left Leaves[思路] 寻找左子树的值的和; 遍历

  • 242. Valid Anagram

    242. Valid Anagram【思路】 anagram的意思是把单词的字母顺序打乱,重新排列后变成一个新单词 .本题中已知一个单词s,给一...

  • 100. Same Tree

    100. Same Tree[思路] 二叉树匹配

  • 383. Ransom Note

    383. Ransom Note 【思路】 字符统计问题,使用map

  • 169. Majority Element

    169. Majority Element[思路] 利用map;

  • 453. Minimum Moves to Equal Array Elements

    453. Minimum Moves to Equal Array Elements[思路] 给一个整数串,每次给n-1个元素加一,最后所有元素...

  • 492. Construct the Rectangle

    492. Construct the Rectangle【思路】 矩形计算,也就是将一个数拆分成两个数相乘;两个数尽可能小,也就是接近;

  • 733. Flood Fill

    733. Flood Fill【思路】 使用深度遍历

  • 13. Roman to Integer

    13. Roman to Integer【思路】 按照字符罗马数字规则改变成数字就行;

文集作者