1D 只有一个参数,用于控制状态之间的切换 2D Simple Directional 2D Simple Directional :具有方向性的动画片段,同一方向上最好不要有多个动画片段 2D Freeform Directional 主要用于控制具有方向性的动画片段,同一方向上允许有多个动画片段,(0,0)位置上必须有一个动画片段 2D Freeform Cartesian 不一定具有方向性的动画片段,An Example would be motions such as “walk f…
1.duplicate declaration checking /** Check that variable does not hide variable with same name in * immediately enclosing local scope. * * e.g * public void m1(boolean a){ * int a = 3; * boolean a = true; // 不调用checkTransparentVar()方法,因为调用checkUnique…
mycode 将list转换成树的时候没有思路 参考: deque 是双边队列(double-ended queue),具有队列和栈的性质,在 list 的基础上增加了移动.旋转和增删等 class Codec: def serialize(self, root): """Encodes a tree to a single string. :type root: TreeNode :rtype: str """ vals = [] def pr…
[LeetCode]297. Serialize and Deserialize Binary Tree 解题报告(Python) 标签: LeetCode 题目地址:https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/ 题目描述: Serialization is the process of converting a data structure or object into a se…
tree是一种常用的数据结构用来模拟真实物理世界里树的层级结构.每个tree有一个根(root)节点和指向其他节点的叶子(leaf)节点.从graph的角度看,tree也可以看作是有N个节点和N-1个边的有向无环图. Binary tree是一个最典型的树结构.顾名思义,二分数的每个节点最多有两个children,分别叫左叶子节点与右叶子节点.下面的内容可以让你学习到: 理解tree的概念以及binary tree 熟悉不同的遍历方法 使用递归来解决二分树相关的问题 A. 遍历一棵树 Pre-o…