自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 【小白爬Leetcode538】把二叉搜索树转换为累加树 Convert BST to Greater Tree

【小白爬Leetcode538】把二叉搜索树转换为累加树 Convert BST to Greater Tree题目解法一 排序解法二 反向中序遍历题目Leetcode538 easy\color{#7fb788}{easy}easy点击进入原题链接:把二叉搜索树转换为累加树 Convert BST to Greater Tree Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key

2020-09-21 10:56:30 160

原创 【小白爬Leetcode47】全排列II PermunationsII

【小白爬Leetcode47】全排列II PermunationsII题目方法一 哈希表+回溯方法二 排序+回溯题目Leetcode226 medium\color{#ff841c}{medium}medium点击进入原题链接:全排列II PermunationsII Given a collection of numbers that might contain duplicates, return all possible unique permutations.这道题的难点在于含有

2020-09-18 10:44:25 137

原创 【小白爬Leetcode226】翻转二叉树 Invert Binary Tree

【小白爬Leetcode226】翻转二叉树 Invert Binary Tree题目BFS 循环DFS递归题目Leetcode226 medium\color{#5ab726}{medium}medium点击进入原题链接:翻转二叉树 Invert Binary Tree Given a binary tree, return the inorder traversal of its nodes’ values.BFS 循环/** * Definition for a binary t

2020-09-16 10:16:54 82

原创 【小白爬Leetcode94】二叉树的中序遍历 Binary Tree Inorder Traversal

【小白爬Leetcode94】二叉树的中序遍历 Binary Tree Inorder Traversal题目方法一 递归方法二 循环题目Leetcode94 medium\color{#ffaa00}{medium}medium点击进入原题链接:二叉树的中序遍历 Binary Tree Inorder Given a binary tree, return the inorder traversal of its nodes’ values.方法一 递归最朴素的递归,如果可以用递归这道

2020-09-14 20:35:34 121

原创 【小白爬Leetcode39】数组总和 Combination Sum

【小白爬Leetcode39】数组总和 Combination Sum题目方法一 暴力搜索(反例,不完全递归)方法二 回溯方法三 剪枝题目Leetcode39 medium\color{#ffaa00}{medium}medium点击进入原题链接:数组总和 Combination Sum Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find al

2020-09-10 11:17:00 134 1

原创 【小白爬Leetcode257】二叉树的所有路径 Binary Tree Paths

【小白爬Leetcode257】二叉树的所有路径 Binary Tree Paths题目方法一 深度优先搜索方法二 广度优先搜索关于C++中int转成string题目Leetcode332 medium\color{#5aB726}{medium}medium点击进入原题链接:重新安排行程 Reconstruct Itinerary Given a binary tree, return all root-to-leaf paths.Note: A leaf is a node with n

2020-09-04 10:34:03 97

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除