书栈网 · BookStack 本次搜索耗时 0.043 秒,为您找到 1885 个相关结果.
  • Leaf 中消息广播

    管理用户 一个最简单的广播的例子 Leaf 在消息广播上,没有做任何的优化,使用最简单粗暴的方式。 管理用户 游戏服务器一定需要用户管理,最常见的方式就是建立用户 ID 到用户实例的映射关系(还有可能存在用户帐号 ID、用户名到用户实例的映射关系)。例如: users = make ( map [ int ]* User ) Us...
  • Sum Root to Leaf Numbers

    Sum Root to Leaf Numbers Sum Root to Leaf Numbers Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root...
  • Sum Root to Leaf Numbers

    Sum Root to Leaf Numbers 描述 分析 代码 Sum Root to Leaf Numbers 描述 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An ex...
  • Sum Root to Leaf Numbers

    Sum Root to Leaf Numbers 描述 分析 代码 Sum Root to Leaf Numbers 描述 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An ex...
  • Part 10 - Splitting a Leaf Node

    Part 10 - Splitting a Leaf Node Splitting Algorithm Allocating New Pages Leaf Node Sizes Creating a New Root Internal Node Format Keeping Track of the Root Printing the Tree ...
  • 使用 console 和 Leaf 交互

    什么是 Leaf console Leaf console 使用 Leaf 内置命令简述 什么是 Leaf console 在 Leaf console 中我们可以输入交互式命令和 Leaf server 交互。 Leaf console 使用 首先,我们需要配置 Leaf 的 console 的端口号(但不能配置 IP,出于安全考虑,只能...
  • 在 Leaf 中使用 Protobuf

    一个简单的上手 编写服务器端 客户端如何对接服务器 常见问题 Protobuf id 的生成规则是什么? 客户端如何正确处理消息 ID? 为什么客户端解析出来的 id 很大? 本文假定你已经仔细阅读过 TUTORIAL 一个简单的上手 在开始本范例之前,请确保已经获取了 Leaf 和 Leafserver 并且正确配置(否则请阅读...
  • 129. Sum Root to Leaf Numbers

    题目描述(中等难度) 思路分析 解法一 回溯法 解法二 分治法 总 题目描述(中等难度) 从根节点到叶子节点的路径组成一个数字,计算所有的数字和。 思路分析 和 112 题 有些像,112 题是给出一个 sum ,然后去找这条路径。但本质上都一样的,只需要对二叉树进行遍历,遍历过程中记录当前路径的和就可以。说到遍历,无非就是 BF...
  • Leaf 游戏服务器框架简介

    Leaf 游戏服务器框架简介 Leaf 的模块机制 Leaf 源码概览 使用 Leaf 开发游戏服务器 Hello Leaf Leaf 模块详解 Leaf ChanRPC Leaf Go Leaf timer Leaf log Leaf recordfile 了解更多 Leaf 游戏服务器框架简介 Leaf 是一个由 Go 语言...
  • Part 8 - B-Tree Leaf Node Format

    Part 8 - B-Tree Leaf Node Format Alternative Table Formats Node Header Format Leaf Node Format Accessing Leaf Node Fields Changes to Pager and Table Objects Changes to the Cur...