1361

[LeetCode] 1361. Validate Binary Tree Nodes 验证二叉树

You have n binary tree nodes numbered from 0 to n - 1 where node i has two children leftChild[i] and rightChild[i], return true if and only if all the ......
LeetCode Validate Binary Nodes 1361

CF1361E James and the Chase

#### Description 给定一个有 $n$ 个点 $m$ 条边的**有向强连通图**。称一个点是**好的**当且仅当它到其他点都有且只有一条**简单路径**。如果好的点至少有 $20\%$ 则输出所有好的点,否则输出 `-1`。 $\sum n\leq 10^5,\sum m\leq 2\ ......
1361E James Chase 1361 and
共2篇  :1/1页 首页上一页1下一页尾页