freedbg

这家伙很懒,什么个性签名都没有留下

他的话题

从零开始学golang之TCP

package mainimport (	"flag"	"fmt"	"net"	"os"	"time")/** *  tcp 启动 链接 三次握手  关闭四次 *  慢启动 + 拥塞窗口 * 门限控制 <...  继续阅读»

从零开始学golang之udp

package mainimport (	"fmt"	"net")/**UDP是无链接! UDP是无链接! UDP是无链接!DialUDP 是 pre-connected 其实是维持了一个发送地址ListenUDP...  继续阅读»

从零开始学golang之ping

package mainimport (	"errors"	"fmt"	"net"	"os"	// "runtime"	// "sync"	//"testing"	"time"	"./xnet/xnternal/iana"...  继续阅读»

从零开始学golang之Bellman

package mainimport (	"fmt")type Edge struct {	u, v, weight int}var edge [10]Edgevar dist [10]intvar...  继续阅读»

从零开始学golang之Dijkstra

package mainimport (	"fmt")const MAX_SIZE int = 5const MAX_VALUE int = 9999func main() {	fmt.Println("Dijkstra")...  继续阅读»

从零开始学golang之 Prim

package mainimport (	"container/list"	"fmt")const MAX_SIZE int = 5//为了看上去 好一些const MAX_VALUE int = 9...  继续阅读»

从零开始学golang之图-邻接矩阵

package mainimport (	"container/list"	"fmt")const MAX_SIZE int = 5//为了看上去 好一些const MAX_VALUE int = 9...  继续阅读»

从零开始学golang之Dynamic programming --LCS

package mainimport (	"fmt")func main() {	//DP 是一种设计技术	fmt.Println("Dynamic programming LCS")	str1 :=...  继续阅读»

从零开始学golang 给gin框架加上日志logrus

package mainimport (	"fmt"	"github.com/gin-gonic/gin"	"github.com/jinzhu/gorm"	"time"	//这里我们导入已经集成的...  继续阅读»

从零开始学golang之SkipList

package mainimport (	"fmt"	"math/rand")var MAX_LEVEL inttype node struct {	key     int	forward []*node}type...  继续阅读»

从零开始学golang之gin加上gorm

package mainimport (	"fmt"	"github.com/gin-gonic/gin"	"github.com/jinzhu/gorm"	"time"	//这里我们导入已经集成的...  继续阅读»

从零开始学golang-RedBlackTree-Delete-fix2

因为之前写的有点乱,回头自己想想有点问题,又重新撸了一边

//n = delete node n=black//根据红黑树 特性 推论出 如下结构//   n=b//nil   nil//在这种情况下,删除n...  继续阅读»

从零开始学golang之RedBlackTree-delete

package mainimport (	"fmt")func main() {	fmt.Println("red-black-tree")	var data = []int{6, 5, 3, 1,...  继续阅读»

从零开始学golang之gin框架-跑起来

package mainimport (	"fmt"	"github.com/gin-gonic/gin")//step1 获取 http_proxy=192.168.1.2:20080 go get...  继续阅读»
  • 1
  • 跳至