- 博客(35)
- 资源 (3)
- 收藏
- 关注

原创 优秀文章链接汇总
Protobuf原理分析小结:https://www.jianshu.com/p/522f13206ba1简单的SocketDemo,解决拆包和粘包问题:http://www.manew.com/thread-140024-1-1.html Unity C# 自定义TCP传输协议以及封包拆包、解决粘包问题(网络应用层协议):https://blog.youkuaiyun.com/qq9928172...
2018-12-22 21:35:47
239
原创 Unity接入Bugly
下载SDK bugly_plugin_v1.5.3.zip:https://bugly.qq.com/v2/sdk?id=69c5bcc5-01b6-4bf6-a122-e1677d0ba5af使用Unity打开BuglyUnitySample工程删除Assets\Plugins\BuglyPlugins\Android\libs\x86下的libBugly.so(由于后面打包有重复包)填...
2019-04-13 17:23:23
1331
原创 C#迭代式和递归式快速排序
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namespace TestCSharp{ class Program { static void Main(st...
2019-03-20 16:42:07
494
原创 二叉树广度遍历
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestCSharp{ public class BinTree { public BinTree m_LeftChild; public BinTree...
2019-03-01 20:56:04
558
原创 二叉树前序遍历
using System;using System.Collections.Generic;namespace TestCSharpFront{ public class BinTree { public BinTree m_LeftChild; public BinTree m_RightChild; public int...
2019-03-01 19:06:01
153
原创 二叉树中序遍历
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestCSharp{ public class BinTree { public BinTree m_LeftChild; public BinTree...
2019-03-01 14:53:36
138
原创 二叉树后序遍历迭代式
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestCSharp{ public class BinTree { public BinTree m_LeftChild; public BinTree...
2019-03-01 14:12:31
940
原创 Lua快速排序
-- region TestLua.luafunction Sort(list, leftIndex, rightIndex) if (leftIndex >= rightIndex) then return end local i = leftIndex local j = rightIndex local baseValue...
2019-01-04 19:56:30
456
原创 Lua希尔排序
交换法:-- region TestLua.luafunction Sort(list) local gap = math.floor(#list / 2) while gap > 0 do for i = gap + 1, #list do local j = i while j > gap ...
2019-01-03 18:29:31
310
原创 Lua插入排序
-- region TestLua.luafunction Sort(list) for i = 2, #list do local j = i while j > 1 and list[j] < list[j - 1] do Swap(list, j, j - 1) j = j - 1 end ...
2019-01-03 17:28:49
200
原创 Lua迭代式归并排序
-- region TestLua.lua-- 2019.1.2function Merge(list, leftIndex, midIndex, rightIndex) local totalIndex = 1 local i = leftIndex local j = midIndex + 1 local tempList = { } while...
2019-01-03 11:40:53
157
原创 Lua递归式归并排序
-- region TestLua.lua-- 2019.1.2m_TempTuple = { }--- <summary>--- Merge(tuple, leftIndex, rightIndex, midIndex, tempTuple)--- merge all elements between left index and right index. (cont...
2019-01-02 20:04:41
290
原创 插值查找
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { int[] list = new int[] { 1, 9, 10, 24, 29...
2018-12-28 17:30:59
142
原创 二分法查找
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { int[] list = new int[] { 1, 2, 3, 4, 5, 6...
2018-12-28 16:11:33
127
原创 斐波那契查找
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { // 斐波那契数列:从第三个元素开始,本项是前两项的和。即F[k] = F[k-1] + F[k-2] // 斐波那契数列的性质:长度为 F[k-1] - 1 的数列,去掉对...
2018-12-28 15:58:45
142
原创 C#设计模式-访问者模式
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { Map map = new Map(new Girl()); ...
2018-12-18 14:28:58
241
原创 C#设计模式-责任链模式
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { Executor designer = new Designer(); ...
2018-12-18 11:19:16
122
原创 C#设计模式-策略模式
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { // client needs to know the state in the strategy mode. while in the state mode, it is no need ...
2018-12-18 10:59:47
154
原创 C#设计模式-状态模式
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { PlayerFSM fsm = new PlayerFSM(); ...
2018-12-17 20:44:44
135
原创 C#设计模式-中介者模式
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { President president = new President(); ...
2018-12-17 20:19:19
102
原创 C#设计模式-观察者模式
using System;using System.Collections.Generic;namespace TestCSharp{ class Program { static void Main(string[] args) { RedDotManager manager = new RedDotManager...
2018-12-17 18:01:31
89
原创 C#设计模式-命令模式
using System;namespace TestCSharp{ class Program { static void Main(string[] args) { Worker worker = new Soldier(); Command command = new Fight(work...
2018-12-17 11:27:57
154
原创 C#设计模式-模板模式
using System;using System.Collections.Generic;namespace TestCS{ class Program { // template pattern static void Main(string[] args) { Vehicle vehicle0 ...
2018-12-16 20:44:39
111
原创 C#设计模式-代理模式
using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { PurchasingAgent agent = new PurchasingAgent()...
2018-12-16 18:12:12
142
原创 C#设计模式-外观模式
using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { Facade facade = new Facade(); fac...
2018-12-16 11:35:51
120
原创 C#设计模式-组合模式
透明式组合模式:using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { Folder folder = new Folder(); ...
2018-12-16 11:20:57
223
1
原创 C#设计模式-装饰者模式
using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { Robot robot = new DanceRobot(); r...
2018-12-16 10:24:27
133
原创 C#设计模式-桥接模式
using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { Vehicle vehicle = new Maserati(new MaseratiEn...
2018-12-15 22:07:40
118
原创 C#设计模式-适配器模式
对象适配器模式:using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { Triplex2DuplexAdapter adapter = ne...
2018-12-15 19:55:02
89
原创 C#设计模式-建造者模式
using System;using System.Collections.Generic;namespace TestCS{ class Program { static void Main(string[] args) { Director director = new Director(); ...
2018-12-15 16:59:30
122
原创 C#设计模式-单例模式
using System;namespace TestCS{ class Program { static void Main(string[] args) { MapManager.Singleton.Init(); Console.ReadKey(); } ...
2018-12-15 16:56:23
86
原创 C#设计模式-抽象工厂模式
using System;namespace TestCS{ class Program { static void Main(string[] args) { Factory factory0 = new MaseratiFactory(); Engine engine0 = factory0...
2018-12-15 14:21:18
87
原创 C#设计模式-工厂方法模式
using System;namespace TestCS{ class Program { static void Main(string[] args) { CarFactory factory0 = new CarFactory(); Vehicle vehicle0 = factory0...
2018-12-15 13:20:53
81
原创 C#设计模式-简单工厂模式
using System;namespace TestCS{ class Program { static void Main(string[] args) { SimpleFactory factory = new SimpleFactory(); Vehicle vehicle0 = fa...
2018-12-15 11:40:02
83
原创 C#堆排序
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace TestCSharp{ class Program { static void Main(string[] args) { Lis...
2018-12-14 11:45:57
142
go1.11.windows_amd64.msi
2018-11-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人