摘要:
```
/*
Copyright 2013-present Barefoot Networks, Inc. Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain ... 阅读全文
摘要:
Reference: "Github Tutorial Exercise 2: Implementing TCP flowlet switching" 实验准备: 参考之前的博客: "Run P4 without P4factory A Simple Example In Tutorials." 由 阅读全文
摘要:
注意点: 和上一篇的 "DS Tree 已知先序、中序 = 建树 = 求后序" 差不多,注意的地方是在aftorder中找根节点的时候,是从右往左找,因此递归的时候注意参数,最好是拿纸和笔模拟一遍。 代码(主体部分): 2016/12/21 阅读全文
摘要:
参考: "二叉树——前序和中序得到后序" 思路历程: 在最初敲的时候,经常会弄混preorder和midorder的元素位置。大体的思路就是在preorder中找到根节点(根节点在序列的左边),然后在midorder中找到根节点的位置index,中序序列在index左边的部分就是root的左子树,在 阅读全文