问题现象
以下是这个用例的内容:
it('uses the fallback value when in an environment without Symbol', () => {
expect((<div />).$typeof).toBe(0xeac7);
});
他测试的是在不支持Symbol的环境,jsx的内部属性$$typeof是否正确。
1361 Validate Binary Tree Nodes 验证二叉树
Description:
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 th