文章 2023-01-08 来自:开发者社区

LeetCode contest 190 5418. 二叉树中的伪回文路径 Pseudo-Palindromic Paths in a Binary Tree

LeetCode contest 190 5418. 二叉树中的伪回文路径 Pseudo-Palindromic Paths in a Binary TreeTable of Contents一、中文版二、英文版三、My answer四、解题报告一、中文版给你一棵二叉树,每个节点的值为 1 到 9 。我们称二叉树中的一条路径是 「伪回文」的,当它满足:路径经过的所有节点值的排列中,存在一个回文序....

LeetCode contest 190 5418. 二叉树中的伪回文路径 Pseudo-Palindromic Paths in a Binary Tree
文章 2023-01-05 来自:开发者社区

LeetCode 257. Binary Tree Paths

DescriptionGiven a binary tree, return all root-to-leaf paths.Note: A leaf is a node with no children.Example:Input: 1 / \ 2 3 \ 5 Output: ["1->2->5", "1->3"] Explanation: All r...

LeetCode 257. Binary Tree Paths
文章 2023-01-05 来自:开发者社区

LeetCode 63. Unique Paths II

DescriptionA robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to re....

LeetCode 63. Unique Paths II
文章 2023-01-05 来自:开发者社区

LeetCode 62. Unique Paths

DescriptionA robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to re....

LeetCode 62. Unique Paths
文章 2017-12-03 来自:开发者社区

[LeetCode] Unique Paths II 不同的路径之二

Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respecti...

文章 2017-12-01 来自:开发者社区

[LeetCode] Binary Tree Paths 二叉树路径

Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree:  1 / \ 2 3 \ 5 All root-to-leaf paths are: ["1->2->5", "1->3"] 这道题给我们一个二叉树,让我们...

文章 2017-11-22 来自:开发者社区

LeetCode:Unique Paths I II

Unique Paths A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The...

LeetCode:Unique Paths I II
文章 2017-11-15 来自:开发者社区

leetcode - Unique Paths II

Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respecti...

文章 2017-11-14 来自:开发者社区

[]leetcode]Unique Paths II

Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively in the grid. F....

文章 2017-11-14 来自:开发者社区

leetCode 257. Binary Tree Paths 二叉树路径

257. Binary Tree Paths Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree:    1  /   \ 2     3...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注